Minimal implementation of printf, which is really fast
npm install pff__No more words, show me the numbers!__
Run yourself to get numbers relevant to your hardware:
``bash`
$ npm i -g matcha printf sprint
$ npm i
$ matcha benchmark/index.js
`js
var pff = require('pff');
console.log(pff('%s world from %d year!', 'Hello', 2014.7));
// Hello world from 2014 year!
`
| Specifier | What it does | Example | Result |
| ------------: | --------------------- | --------------------------- | ---------------- |
| %s | String | pff('Hello %s', 'world') | 'Hello world' |pff('My age is %d', 13.2)
| %d | Floored number | | 'My age is 13' |pff('100%%s cool!')
| %% | Percent | | '100%s cool!'` |
Not much, but hey! - it's fast!
MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)
[npm-url]: https://npmjs.org/package/pff
[npm-image]: http://img.shields.io/npm/v/pff.svg
[travis-url]: https://travis-ci.org/floatdrop/pff
[travis-image]: http://img.shields.io/travis/floatdrop/pff.svg