{"name":"quick-format-unescaped","version":"2.0.0","description":"Solves a problem with util.format","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test"},"author":{"name":"David Mark Clements"},"devDependencies":{"fastbench":"^1.0.1"},"dependencies":{"fast-safe-stringify":"^1.0.8"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/quick-format.git"},"keywords":[],"license":"MIT","bugs":{"url":"https://github.com/davidmarkclements/quick-format/issues"},"homepage":"https://github.com/davidmarkclements/quick-format#readme","gitHead":"021849002afe5860d2ba192c27d8be61be28d6ce","_id":"quick-format-unescaped@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-Gf+Vt5//Py822Tl7qvIVpNpnAYW6Qi3lOPGO35hkR1FDHuZlBc9OMzQo0XiXm9dZJKq43j7rtqTqR8d2KO6b2Q==","shasum":"d594f992060b6c70bccc625c14c38b3d2574cb24","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-2.0.0.tgz","fileCount":6,"unpackedSize":9399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDHqACRA9TVsSAnZWagAAZpwP/14ZjVpXEFQA6QYP/kPx\nOSJyB5IwnheLzKfPvPzeq6I5CZD3AilSpeCRIDnezgsunCYBYqZTQ12JUSKQ\n0aAXb4QYR6rkfPsHSLFayM9kSQ1mZmpRPzRW4tfs1Ps9+O7Qd+XSTu7iugNg\njwmYRg3RhlLZHGqf88KOQrp4VJ62uF8M7GXFLzrNPO3WWtu1rtbnukXxK/g8\nNDKzMzJ5kxt2N8QBxBraL+sl7Q83IHjaph7UJNVQGLbW2e322FP3GGaNjru0\n0su9+1CkiGhnI/h4VLU+o2BXaYptOmMF3/T/e908ZFEWVL9dGzUR3Me/JO5g\nAEQR1zx4yAk4hpp9MYMc8FGr+Zpk5PUoijxdTUICrmp2CCMi2jNlO1Dg7+e3\n8bzF+PvcOsgdbdS1EqLv32KxaCxePnKGpTiW8cOZjZXeOfvw9Iii1scNVNIL\npalUrIDn8+DwGrdsc/Q/J2op6wToDz3CBH4Qq9Hw/wI+1dtg8+iRGtW4PJ0L\nC7Db6PVBZ1k88jvNlFHlLRBgMjDzrCEStocf4yVtWoiIZRTWS2xvc3hilRjj\n7kA0C8TgzmSQUeq0j6oNk+uQZBtH2XCZZ0r6hS1yBtX8nSULgf74+8QHX060\n0zJuP2NjyrdDaaL32hnTJsigsWEhSOFLc3sTqZR8hXSI+S5HkFhOTZY0Ep1a\nUYMi\r\n=U/Y1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMpeTh+et5W0OKPk3JhHMM7NThzOh3PQA6Qmc1GfoW4AIhAMnHnHo7fC347gXeUNXnnibKKz83Ri4JOTy3FQbfn4XQ"}],"size":3441,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-2.0.0.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quick-format-unescaped_2.0.0_1527544448270_0.2691582514085431"},"_hasShrinkwrap":false,"readme":"# quick-format-unescaped\n\n## unescaped ?\n\nSometimes you want to embed the results of quick-format into another string, \nand then escape the whole string. \n\n## usage\n\n```js\nvar format = require('quick-format-unescaped')\nformat('hello %s %j %d', ['world', [{obj: true}, 4, {another: 'obj'}]])\n```\n\n## format(fmt, parameters, [options])\n\n### fmt\n\nA `printf`-like format string. Example: `'hello %s %j %d'`\n\n### parameters\n\nArray of values to be inserted into the `format` string. Example: `['world', {obj:true}]`\n\n### options.stringify\n\nPassing an options object as the third parameter with a `stringify` will mean \nany objects will be passed to the supplied function instead of an the \ninternal `tryStringify` function. This can be useful when using augmented\ncapability serializers such as [`fast-safe-stringify`](http://github.com/davidmarkclements/fast-safe-stringify) or [`fast-redact`](http://github.com/davidmarkclements/fast-redact).  \n\n## caveats\n\nBy default `quick-format-unescaped` uses  `JSON.stringify` instead of `util.inspect`, this means functions *will not be serialized*.\n\n## Benchmarks\n\n### Node 8.11.2\n\n```\nutil*100000: 350.325ms\nquick*100000: 268.141ms\nutilWithTailObj*100000: 586.387ms\nquickWithTailObj*100000: 280.200ms\nutil*100000: 325.735ms\nquick*100000: 270.251ms\nutilWithTailObj*100000: 492.270ms\nquickWithTailObj*100000: 261.797ms\n```\n\n### Node 10.4.0\n\n```\nutil*100000: 301.035ms\nquick*100000: 217.005ms\nutilWithTailObj*100000: 404.778ms\nquickWithTailObj*100000: 236.176ms\nutil*100000: 286.349ms\nquick*100000: 214.646ms\nutilWithTailObj*100000: 388.574ms\nquickWithTailObj*100000: 226.036ms\n```\n\n## Acknowledgements\n\nSponsored by [nearForm](http://www.nearform.com)\n","publish_time":1527544448355,"_cnpm_publish_time":1527544448355,"dist-tags":{"latest":"4.0.4"}}