0ce664c2aa2e7471d100a58055ecc717e79aca0e
[WP-Themes/CCEOEM.git] /
1 {
2   "name": "extsprintf",
3   "version": "1.3.0",
4   "description": "extended POSIX-style sprintf",
5   "main": "./lib/extsprintf.js",
6   "repository": {
7     "type": "git",
8     "url": "git://github.com/davepacheco/node-extsprintf.git"
9   },
10   "engines": [
11     "node >=0.6.0"
12   ],
13   "license": "MIT",
14   "readme": "# extsprintf: extended POSIX-style sprintf\n\nStripped down version of s[n]printf(3c).  We make a best effort to throw an\nexception when given a format string we don't understand, rather than ignoring\nit, so that we won't break existing programs if/when we go implement the rest\nof this.\n\nThis implementation currently supports specifying\n\n* field alignment ('-' flag),\n* zero-pad ('0' flag)\n* always show numeric sign ('+' flag),\n* field width\n* conversions for strings, decimal integers, and floats (numbers).\n* argument size specifiers.  These are all accepted but ignored, since\n  Javascript has no notion of the physical size of an argument.\n\nEverything else is currently unsupported, most notably: precision, unsigned\nnumbers, non-decimal numbers, and characters.\n\nBesides the usual POSIX conversions, this implementation supports:\n\n* `%j`: pretty-print a JSON object (using node's \"inspect\")\n* `%r`: pretty-print an Error object\n\n# Example\n\nFirst, install it:\n\n    # npm install extsprintf\n\nNow, use it:\n\n    var mod_extsprintf = require('extsprintf');\n    console.log(mod_extsprintf.sprintf('hello %25s', 'world'));\n\noutputs:\n\n    hello                     world\n\n# Also supported\n\n**printf**: same args as sprintf, but prints the result to stdout\n\n**fprintf**: same args as sprintf, preceded by a Node stream.  Prints the result\nto the given stream.\n",
15   "readmeFilename": "README.md",
16   "bugs": {
17     "url": "https://github.com/davepacheco/node-extsprintf/issues"
18   },
19   "homepage": "https://github.com/davepacheco/node-extsprintf",
20   "_id": "extsprintf@1.3.0",
21   "dist": {
22     "shasum": "296722c8a9b148f1d51d6f7628f426e85a7fc49a"
23   },
24   "_from": "extsprintf@1.3.0",
25   "_resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz"
26 }