strings handling library for JavaScript
strings.js is designed to be used with Common.js and Browserify
The project depends on Gulp.js. Assuming you already have Node.js installed on your system, run the following command:
npm install -g gulp
Next, clone the repository and install project dependencies:
# Fetch only the latest commits.
git clone --depth=1 git@github.com:fusionalliance/strings.js.git
cd strings.js
npm install
var strings, format, formattedString;
strings = require('strings');
format = 'this is test {testGiven} for a showing how to use {name}';
formattedString = strings.format(format, {
testGiven: 'stringFormatter',
name: 'format'
});
Simply run:
gulp karma
If you have any suggestions, or found a bug please open a GitHub issue and we will get to it as soon as we can.
strings.js is distributed under the terms of the MIT license.
See LICENSE for details.