{ "_id": "extsprintf", "_rev": "41-b3144aa09b151536acc34e234a344e58", "name": "extsprintf", "description": "extended POSIX-style sprintf", "dist-tags": { "latest": "1.4.0" }, "versions": { "1.0.0": { "name": "extsprintf", "version": "1.0.0", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "_id": "extsprintf@1.0.0", "dependencies": {}, "devDependencies": {}, "optionalDependencies": {}, "_engineSupported": true, "_npmVersion": "1.1.4", "_nodeVersion": "v0.6.12", "_defaultsLoaded": true, "dist": { "shasum": "4d58b815ace5bebfc4ebf03cf98b0a7604a99b86", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.0.tgz" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "directories": {} }, "1.0.1": { "name": "extsprintf", "version": "1.0.1", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "_id": "extsprintf@1.0.1", "dependencies": {}, "devDependencies": {}, "optionalDependencies": {}, "_engineSupported": true, "_npmVersion": "1.1.21", "_nodeVersion": "v0.6.17", "_defaultsLoaded": true, "dist": { "shasum": "590e147d5c59e2180b3366f7bc21acabaf69a185", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.1.tgz" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "directories": {} }, "1.0.2": { "name": "extsprintf", "version": "1.0.2", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "_id": "extsprintf@1.0.2", "dist": { "shasum": "e1080e0658e300b06294990cc70e1502235fd550", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz" }, "_npmVersion": "1.1.65", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "directories": {} }, "1.0.3": { "name": "extsprintf", "version": "1.0.3", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "_id": "extsprintf@1.0.3", "dist": { "shasum": "3310ca8ced5205e5234766b0b2744ea5b2788d67", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.3.tgz" }, "_from": ".", "_npmVersion": "1.3.8", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "directories": {} }, "1.1.0": { "name": "extsprintf", "version": "1.1.0", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "homepage": "https://github.com/davepacheco/node-extsprintf", "_id": "extsprintf@1.1.0", "_shasum": "f9b87b9970f66788aef90d398a77590987b22472", "_from": ".", "_npmVersion": "1.4.9", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "dist": { "shasum": "f9b87b9970f66788aef90d398a77590987b22472", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.1.0.tgz" }, "directories": {} }, "1.1.1": { "name": "extsprintf", "version": "1.1.1", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "homepage": "https://github.com/davepacheco/node-extsprintf", "_id": "extsprintf@1.1.1", "_shasum": "3e8b91a53ca4b1764e77435f7d9faccb8a0a3550", "_from": ".", "_npmVersion": "1.4.9", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "dist": { "shasum": "3e8b91a53ca4b1764e77435f7d9faccb8a0a3550", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.1.1.tgz" }, "directories": {} }, "1.2.0": { "name": "extsprintf", "version": "1.2.0", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "homepage": "https://github.com/davepacheco/node-extsprintf", "_id": "extsprintf@1.2.0", "_shasum": "5ad946c22f5b32ba7f8cd7426711c6e8a3fc2529", "_from": ".", "_npmVersion": "1.4.9", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "dist": { "shasum": "5ad946c22f5b32ba7f8cd7426711c6e8a3fc2529", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.2.0.tgz" }, "directories": {} }, "1.2.1": { "name": "extsprintf", "version": "1.2.1", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "homepage": "https://github.com/davepacheco/node-extsprintf", "_id": "extsprintf@1.2.1", "_shasum": "1e42560fc26783d14ab640dcf22cc73789b3844e", "_from": ".", "_npmVersion": "1.4.9", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "dist": { "shasum": "1e42560fc26783d14ab640dcf22cc73789b3844e", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.2.1.tgz" }, "directories": {} }, "1.3.0": { "name": "extsprintf", "version": "1.3.0", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "gitHead": "accc9f2774189a416f294546ed03b626eec3f80c", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "homepage": "https://github.com/davepacheco/node-extsprintf", "_id": "extsprintf@1.3.0", "scripts": {}, "_shasum": "96918440e3041a7a414f8c52e3c574eb3c3e1e05", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "dist": { "shasum": "96918440e3041a7a414f8c52e3c574eb3c3e1e05", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz" }, "directories": {} }, "1.4.0": { "name": "extsprintf", "version": "1.4.0", "description": "extended POSIX-style sprintf", "main": "./lib/extsprintf.js", "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "engines": [ "node >=0.6.0" ], "license": "MIT", "gitHead": "26f360d1588a2d4106f3061bfd757f6ecdee37dc", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "homepage": "https://github.com/davepacheco/node-extsprintf#readme", "_id": "extsprintf@1.4.0", "scripts": {}, "_shasum": "e2689f8f356fad62cca65a3a91c5df5f9551692f", "_from": ".", "_npmVersion": "2.15.1", "_nodeVersion": "0.10.45", "_npmUser": { "name": "dap", "email": "dap@cs.brown.edu" }, "maintainers": [ { "name": "dap", "email": "dap@cs.brown.edu" } ], "dist": { "shasum": "e2689f8f356fad62cca65a3a91c5df5f9551692f", "tarball": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.0.tgz" }, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/extsprintf-1.4.0.tgz_1512077204279_0.1054401712026447" }, "directories": {} } }, "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", "maintainers": [ { "email": "jesse.butryn@live.com", "name": "jesse_b" }, { "email": "dave@daveeddy.com", "name": "bahamas10" }, { "email": "aguycalledrichard@gmail.com", "name": "chudley" }, { "email": "bahamat@digitalelf.net", "name": "bahamat" }, { "email": "michael.hicks@joyent.com", "name": "michael.hicks" }, { "email": "wpreul@gmail.com", "name": "wyatt" }, { "email": "kusorbox@gmail.com", "name": "kusor" }, { "email": "kody.kantor@joyent.com", "name": "kkantor" }, { "email": "trentm@gmail.com", "name": "trentm" }, { "email": "todd.whiteman@joyent.com", "name": "todd.whiteman" }, { "email": "dap@cs.brown.edu", "name": "dap" }, { "email": "josh@sysmgr.org", "name": "jclulow" }, { "email": "alex@cooperi.net", "name": "arekinath" }, { "email": "cody.mello@joyent.com", "name": "melloc" }, { "email": "kelly.mclaughlin@joyent.com", "name": "kellymclaughlin" } ], "time": { "modified": "2020-10-06T20:44:24.228Z", "created": "2012-04-18T01:14:25.292Z", "1.0.0": "2012-04-18T01:14:26.459Z", "1.0.1": "2012-06-14T00:13:58.871Z", "1.0.2": "2013-02-06T18:25:43.668Z", "1.0.3": "2014-01-15T00:31:32.926Z", "1.1.0": "2014-06-06T21:00:44.164Z", "1.1.1": "2014-06-13T16:30:25.968Z", "1.2.0": "2014-06-16T21:20:26.849Z", "1.2.1": "2014-11-21T00:31:52.236Z", "1.3.0": "2015-03-07T00:13:00.888Z", "1.4.0": "2017-11-30T21:26:44.392Z" }, "repository": { "type": "git", "url": "git://github.com/davepacheco/node-extsprintf.git" }, "readmeFilename": "README.md", "homepage": "https://github.com/davepacheco/node-extsprintf#readme", "bugs": { "url": "https://github.com/davepacheco/node-extsprintf/issues" }, "license": "MIT", "users": { "mojaray2k": true, "andr": true } }