# pff

> Minimal implementation of printf, which is really fast

Latest version **1.0.0** (published 2015-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install pff
pnpm add pff
yarn add pff
bun add pff
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-03-31 |
| First published | 2014-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Vsevolod Strukchinsky |
| Maintainers | floatdrop |
| Keywords | printf, format, string |

## Links

- npm: https://www.npmjs.com/package/pff
- Repository: git@github.com:floatdrop/pff
- Homepage: https://github.com/floatdrop/pff
- Issues: https://github.com/floatdrop/pff/issues
- npm.io page: https://npm.io/package/pff

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-03-31
- 0.2.0 — 2014-07-03
- 0.1.1 — 2014-06-19
- 0.1.0 — 2014-06-19
- 0.0.1 — 2014-06-19
- 0.0.0 — 2014-06-18

## README

# pff [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Minimal printf implementation

__No more words, show me the numbers!__

![image](https://cloud.githubusercontent.com/assets/365089/3465905/427d6f24-0274-11e4-9348-216df8f05060.png)

Run yourself to get numbers relevant to your hardware:

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

## Usage

```js
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)

[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

---
_Source: https://npm.io/package/pff · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
