Socket
Socket
Sign inDemoInstall

pff

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pff

Minimal implementation of printf, which is really fast


Version published
Weekly downloads
3K
increased by1.12%
Maintainers
1
Install size
3.20 kB
Created
Weekly downloads
 

Readme

Source

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

SpecifierWhat it doesExampleResult
%sStringpff('Hello %s', 'world')'Hello world'
%dFloored numberpff('My age is %d', 13.2)'My age is 13'
%%Percentpff('100%%s cool!')'100%s cool!'

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

License

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

Keywords

FAQs

Last updated on 31 Mar 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc