bagoftext

A bag-of-holding containing text utility functions.

npm install bagoftext
6 downloads in the last week
35 downloads in the last month

Avatar

Build Status Dependencies Status Published Version
npm Badge

Bag Of Text

Bag Of Text contains text utility functions.

Installation

npm install bagoftext

or as a dependency in package.json file:

"dependencies": {
  "bagoftext": "x.y.z"
}

Usage

Localisation:

var text = require('bagoftext');

text.initLocales(__dirname, {
  defaultLocale: 'id',
  localesDir: 'path/to/locales/'
});
text.setLocale('en');
text.__('Hello %s %s', 'FirstName', 'LastName');
npm loves you