fa-strings.js
v1.0.0 strings
strings.js
strings handling library for JavaScript
strings.js is designed to be used with Common.js and Browserify
Getting Started
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 [email protected]:fusionalliance/strings.js.git
cd strings.js
npm install
Usage
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'
});
Tests
Simply run:
gulp karma
Contributing
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.
License
strings.js is distributed under the terms of the MIT license.
See LICENSE for details.