pff
PrintF Ftw
Last updated 11 years ago by floatdrop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install pff 
SYNC missed versions from official npm registry.

pff NPM version Build Status

Minimal printf implementation

No more words, show me the numbers!

image

Run yourself to get numbers relevant to your hardware:

$ npm i -g matcha printf sprint
$ npm i
$ matcha benchmark/index.js

Usage

var pff = require('pff');

console.log(pff('%s world from %d year!', 'Hello', 2014.7));
// Hello world from 2014 year!

Specifiers

Specifier What it does Example Result
%s String pff('Hello %s', 'world') 'Hello world'
%d Floored number pff('My age is %d', 13.2) 'My age is 13'
%% Percent pff('100%%s cool!') '100%s cool!'

Not much, but hey! - it's fast!

License

MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

6 Versions

  • 1.0.0                                ...           10 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |