{"name":"quick-format-unescaped","version":"2.0.1","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":{},"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":"e7fbf5822e2f754da546ddc20c444e4d2cd71d4a","_id":"quick-format-unescaped@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-Bnjl80KhvExaR3yVayv7gHl+MDBgcobWtg5wURkDXGkcOl1r54PQo/CUWMTjPnpXfAdc3EyQJoaPvCMHX6HxEw==","shasum":"3fabe3cef101ab42d585f84a75088bcef1aa73ba","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-2.0.1.tgz","fileCount":6,"unpackedSize":9360,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDJ+2CRA9TVsSAnZWagAA/8QP/0zg00665WpQszd7eQz5\nkqix+VertbupYknX+EgUFAhtXdt1drf74vXPgeSUzoBaj51k3vJ9B1pC2GRr\natESvod+8LwRchB3YIaEbcaPLYEfcwNsiEcKX1tWeMfVxY/Agw0/kb6obiAn\n+XexWBns/B6BYw16rGwdESIffYxKQZPOOX7ATrQOF7l7gZGVx2B1+2jHO6Z0\nbpVzbXq2iJmAQcL6NdYwUm3zsJ3pJ7NU1fIQPZvqOhfvtVZqnIFGJVHgFByz\nIm8NiJ3rhHGdKH8POm4nxvnwtXut7RHLAWmqCZecCbxCK/+M3LRahl+W93K9\nKjw9eCeakcccspCkUYjGbcfs59EsUgONWthQgO7Xm7Fsk9xXN8qTr4FAbsPk\nK+YkJj9Y9rLiGhjnENqMnMsclVVghnYOh7DX34tj5PnifL7vRM5Hp0tGs2FA\nfnIfR3+6WjjPErsyZruNfQAWKFBZeGqgi5msf2oneGGoucb5d7K1dsfny8GR\ndiwOzkP3unptsEnrBGA3IRuep59jhOSStc9KY3Yz/oCORBcQinWLE/YP2xIs\n13WEoN7b6amMw8m6cu0eiplvGdCM+T5XoofDxYFbMXbZCqtz2Jfnz+HEQqn/\nOsWtCrk7UrzwFbzT5kyIZog4rjYSVAl707h7uSp8a+1J0dRq10U6ziGnX4gA\n7VDo\r\n=e0gL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaIcdIhGF5gk6w/7JQb1AVu5HvwAs05rE/nR9EDKz7+AIhAPWnR1mn68vBeF4sRyyRKjNUZXNQuu75QN5bphDEeOKi"}],"size":3432,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-2.0.1.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quick-format-unescaped_2.0.1_1527553973882_0.9757832614143274"},"_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":1527553974044,"_cnpm_publish_time":1527553974044,"dist-tags":{"latest":"4.0.4"}}