{"name":"quick-format-unescaped","version":"4.0.2","description":"Solves a problem with util.format","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nyc -- node test","test:html":"nyc --reporter=html -- node test"},"author":{"name":"David Mark Clements"},"devDependencies":{"fastbench":"^1.0.1","nyc":"^15.0.0"},"dependencies":{},"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":"717ab50c9252f087fde7bf2f57f37c75264a6ed0","_id":"quick-format-unescaped@4.0.2","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-HNPqtTHgal9dBpJxibFGgOEmlaTbwEbplrR+oOiWp9aNFlFKBYfkbvvF8VrJPK65okrZuGOwHKLfe7/gT6NWuw==","shasum":"dd9ff79fda5e582799cb4e9cbdc9e3f2c7db1266","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-4.0.2.tgz","fileCount":7,"unpackedSize":11563,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSSFPCRA9TVsSAnZWagAAr7MP/R/TCbu3XBQK/Qcbfdp3\nBC4Jkd3KUmVetJl+v9vQmqbBliN+TtXIsyHKIw9aC1619Wy6VutAECtq4tAf\nnuVd26HWE719INgHZMxUqsNJE4/KdlUmGlKci5Xim3z6ipOWi16CPo2QBp+V\noSHqeeLNrbjVkgp7lDYuHyROVuUg5un63j4O94QhVa0YxuqDwpBN3I0W7uc6\neITqgWz0O3krFAc++Vq/NVNfWqVECxrjzTQ2sugny3ITDU8hOter2yM5zTbl\nCqFascYMZdLoqEumWwu1/6Ei4NtEnG7q2zAXscibjZzhTnoNE2fYNR+TU6GU\n4Y2+qeOdEv+mptIudT0vcflVATCECP4AIhWrFiJ/1Cq0QqnJEjUgVXPRLyZb\nQj8vHHN2aOVcxAnGCoedj1X1jQDXiTO4dtn/tKxKd/I05AYmpxn3jdqGvglJ\nMhWpnnfsQ+GR7IvzsM49MZQF7HGrxCSKRjU95X8S7hUHLH6KTjpQJOHgOgl5\n0O36DJtIOuDPbnfTvA2ewioDMAVG/qv2JbYbS7aqCgZZwkVR+7zYH1onohYC\nxlMYDxU4Ge+guVGLGc6ZWS4uKKF8z4Y/Yg8RGKAcWnb0cz7mDDllxpZKG0pQ\nXJJUEEHTJMGaW5VtBC0iijjTPp5o1wnePznHkxWr6pHFPD4eoh4TI3AgNOA+\n2p/a\r\n=TEyz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfkdptnZXRsEzZptunvlWEJDT879GtMamraQ5InXhuNgIhAKZFwP1B5AIBKdu/xzA46vn8fdpPmXCNNgcAYCposm58"}],"size":3921,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-4.0.2.tgz"},"_npmUser":{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},"maintainers":[{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quick-format-unescaped_4.0.2_1615405390837_0.049080710828682594"},"_hasShrinkwrap":false,"deprecated":"DO NOT USE QUICK-FORMAT-UNESCAPED 4.0.2","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":1615405390987,"_cnpm_publish_time":1615405390987,"dist-tags":{"latest":"4.0.4"}}