{"name":"quick-format-unescaped","version":"4.0.4","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":"20ebf64c2f2e182f97923a423d468757b9a24a63","_id":"quick-format-unescaped@4.0.4","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==","shasum":"93ef6dd8d3453cbc7970dd614fad4c5954d6b5a7","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-4.0.4.tgz","fileCount":7,"unpackedSize":12829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh23tUCRA9TVsSAnZWagAAU2MP/0hMHLpWstTFFZCUAU1M\n7O3BsJeKe6ma/9HOrnB0+LXi9f62sD0rh8Lb7fpkDIz2JRN/vkgm/rUOmBxT\nnda0CUNduUFXirnPph8YaMJzrQLqRKzgGAluJ6gjuCWAIbMy1H2Gmjjr8oxL\nu2Y0pGFSCMyaDqPYtxIKxEo4hFLuct3zKPNysEWMBAcyHZitU+eNll5yCYww\n5oZ17xYClKD34dIIUrT3d5cTfCPSvQ6iWqf/eWKmWJ7GXP7JDiHQv56uDxRs\nEqwea6L/+CejxBfIDmxmR+xNaRarpIuLMvYejK7wwHxe8rtai04MIw4v9/FS\nx1cosR+yWiR3rZHdY580OFm35sT+qudybQEYKoTbD+YEek8b2Yo2AbsF0K92\nrBZq/jlzDQrhI963sanpOx7UB/Lsm35xA1c0DSaYgRe7hLC6GJA6iirQpYbr\n+DU9FB6nEtkVSooW7La45Vpy+ATYfZw/l0DdiEL7cHb61DYtgGHS/dqRCPzu\nGFvx3unZ83Dd5Zc2lJti8I/7PnYmyqq3DGQSGBwltoKIChzNSLoLXmRp1OxU\nyFr9zp7mHbUxow2pAfy+d4tsr31HEcKvi/c7hN8EH0S1A7DyCnOiGSwEa3N5\nuA3e/WQnJ+3dxsIhQoyYqdAjaY5sDeMYpdxMRs+6aJib/iPjOZCy7TUtyco/\nd6bI\r\n=CFOH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICopwT4gnZnKgazbfvq0w43ArJAHlvSlhgzW2dRGYfX6AiAs3bblw1jyCWrc0LVfGjT+CD3F3wnCemj2wPPx/51u+g=="}],"size":4066,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-4.0.4.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.4_1632233918583_0.9840466140253223"},"_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":1632233918724,"_cnpm_publish_time":1632233918724,"dist-tags":{"latest":"4.0.4"}}