{"name":"quick-format-unescaped","version":"4.0.3","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":"a00adf1c8f7feccc1d222442fb2262c47fa44a19","_id":"quick-format-unescaped@4.0.3","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-MaL/oqh02mhEo5m5J2rwsVL23Iw2PEaGVHgT2vFt8AAsr0lfvQA5dpXo9TPu0rz7tSBdUPgkbam0j/fj5ZM8yg==","shasum":"6d6b66b8207aa2b35eef12be1421bb24c428f652","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-4.0.3.tgz","fileCount":7,"unpackedSize":11361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS3UvCRA9TVsSAnZWagAAmdcP/2BqG4124TshXEZMkGJp\nldwmXMtSbAbSUY8+9UyY3rIUKXmW2N9hsk9DOHUgR3z44UaiP8zTRJvjr6QJ\nE/PE6BxfYgaQ0JYQS28x07wCXK/rohmbneBHoZSiNEH+6dNxrBEGo7J+4jKu\nc5X72D2pObGRYviWgUDeO4Fp9yCLK8SLL/39o+kdVzMEd4q51lroLJVNy68/\ndO+tkL4YkKdnG4txrYTjSh8aI4R/ufdVFTHfmT73lp+z2NDQFUA3/fMNP0oQ\nRa2FhevLH3pSY13GggP+NbKrSVaOwCiMfSohtN8ZF6ec5PXMMrd4e7E0ouLG\nVopNyai53+N7CJyEf2GxXSdL5/CcfJS4VPFb0lRRIbDLQ1QNZIzuk1RG1u1C\naEVPKurFOJf/VRerOKICD3bqjA6wXv296Nwe9y9gLRPrE9m8YBM7U/BV5JYV\ng52JHGwWN/Go+VAw8er8Mg1Yr3CtZgIDkG5Btc6aUj33UQ2jxVlbe/5j3aeY\niYMH4a1oV0Ksgeg5f5p3c2l0ciPIeymQzGf03xTutbrrWcEjd5L0idpfNivW\nv4fXHGHTbsN8nxRnUgCQpbtShcBJl32LLU4gDwF/nMjuZ77+r5V+Tt4Rqbfp\nVXZdTZ2kv4GgcmXKMCjSw1FjVwU2ENxnrOjfpJxnY4Au2a5aXT8wE8rXhr3T\nHfn7\r\n=ASS0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDP67H6r3o4kN4AkvxDmS4Y+92kLr+i8eo+KOlCFtJr0AiA4mT90LJWhWTNdikWhCUli9afCFR8pyGGYIEt9BGbQxQ=="}],"size":3878,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-4.0.3.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.3_1615557934665_0.9905071511009522"},"_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":1615557934848,"_cnpm_publish_time":1615557934848,"dist-tags":{"latest":"4.0.4"}}