{"name":"quick-format-unescaped","version":"4.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":{},"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":"2175b2a24afbfbd1937f8157b817db2462971719","_id":"quick-format-unescaped@4.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-cFlHiu7FGSKN5y/WmV/IB90ttZrFf1qwdYjFjviFBokaxuEsi6N/Fp1xJH71Vj0FzqUZxPMfRLx0UaVG7LWT7w==","shasum":"0fd5f606c11b54d961fa0633ef211dff46ecb54f","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-4.0.0.tgz","fileCount":7,"unpackedSize":9182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeePRkCRA9TVsSAnZWagAAL4EP/31sp2HRl23d7+FjXJ1P\nCW82604LgQiL8Shf6QW0e7mUMDKYo5zi7WZohrX9GoHsKU5OCgBe/nfiIx9s\nFaLJbOMDHh2w3veEyNJfae6VBg7gGtyBdEHfZIjpQH8eAEWryiSbp8CR+Pus\njv8j+fiv3Lb8hw+KF3LoNNnMaDlxtzycrhrUwJytRFSaGDfYY7rAJK2/YTjZ\nTf7AccskNd9TCQppbHkdogxXON1bKu60VZX2TbqUIhrDorLZpqU7ym4J18Au\nWgyhtpQE3l1ZcReSbsNg3fw5l4klyNSDhAiS4Z4Rv4t4MmxmZqZL7ybRZrf6\n3PlPg3wihQQfAC0A+6IIv5p9l2jMALRubUqPaA9qPxmKAdP12W9NOZ/UggdM\nHk6kebg1o48xdNVMVouxskJriURF1LJQ4G/QVTFGmyeHe9tHgU3pP4kOAJoj\nKCWO21OOyZBdzvhonUGw5tQPuadJZY4qd4A1MiZnjJ7/kfUMUrR6Q/D2CoHL\nRgd04hbydc5aUaD6Dj4XazYReQg5a4pQT3bDawaO/JhUWwX0Uxw+psuNBjqs\n/RaoMwaVPGrWJEa4jhf9kK2wHap9EXjaeqItKZ6SxVylHgyJvFvZK9XxwTar\nxSHhZGNdgqTkQkc2M8E6aO7xu9WRSELApEV/0+2OxI8k6KBgKQ1uFiOdJfCw\nCaYD\r\n=eMSl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxcgF8VscUuqcNaTh8fIA5JivWgh3DIgnF9PTKY9f4xgIgCR/vTLeJazQTF6tZMzpF1vTAZzYAkgUFredta8hm2XA="}],"size":3398,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-4.0.0.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quick-format-unescaped_4.0.0_1584985188278_0.14337994771713825"},"_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":1584985188378,"_cnpm_publish_time":1584985188378,"dist-tags":{"latest":"4.0.4"}}