Lightweight util.format()
for the browser.
npm i format-util
var format = require('format-util')
, msg = format('%s', 'foo');
Or with an array of values in the second argument just like with vsprintf:
var format = require('format-util')
, msg = format('My name is %s, I drink %s!', ['Alex', 'vodka']);
Run the test specifications:
npm test
Compile test specifications for the browser (open test/index.html
):
npm run spec
Generate code coverage:
npm run cover
Create a standalone browserify build:
npm run browserify
Remove generated files:
npm run clean
To generate all documentation:
npm run docs
Generate the project readme file mdp:
npm run readme
Everything is MIT. Read the license if you feel inclined.
Generated by mdp(1).