{"name":"quick-format-unescaped","version":"3.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":"5327e77fa8b4b1d34c2ac7c8a403a3997c5d00a0","_id":"quick-format-unescaped@3.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-XmIOc07VM2kPm6m3j/U6jgxyUgDm2Rgh2c1PPy0JUHoQRdoh86hOym0bHyF6G1T6sn+N5lildhvl/T59H5KVyA==","shasum":"21e7fdc5b08b079ef71ed0728ed0725e58671e41","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-3.0.0.tgz","fileCount":6,"unpackedSize":8636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbH/1bCRA9TVsSAnZWagAACLcQAI3sb0DK/eKzl0dR5kJX\nogL4JicWMgdkYvNa6TsC43p+bvYmBolCinNg4QUYQx6hJJjf9nq2Pkk9KrxI\nKfbyb2RnGNI0Oj/d+uqmNA6dGdIrDIFy9GVzW4fZvXC9JMr4F9IvOfNfoZDd\n12GHqWPJWSOJvQtg+G1lq93Qmuz6Aig9TLgt15XgCjbQSWBEd5V3PAQ/v6aL\nRc6Mt1IqIl6Od4fn3kAUnGcJh9WCO7ysoY2drXUVcO2Ad4opkLDds6RDJYB4\nN747zCPBkxF7yH+tGtuFSGvnMNuY2f02b/EICjtzHkPXXNadZpkt80og4L5v\nxtbXDs/OhLE5ERLc1OGBmR3qW8cNU9jpnfztlafdNTl6N0c9MoKsN+aRBt8H\nrGO1VZQrEk282rk5B24IHA2yRoM4qZI3xKDUD5mOpD0IhLKV4RMWUu5GSt2O\nuvrvXYyhSnCnL2lcJ+wT+a/buGOe5VS0Qz890CHiX3/EW1elmofVBY6tMetg\n6K979QCoNONVEihbIAaaSmn9UTiT+SY4o9xYPli/+nFBzK/1zTw0nZM0fIoM\n8Cd03txBQmbCB8Z1gsyRaQEBsnNPz9JEvLlmIcCbQuPpIo26a76PtDr0aEjz\nPvkYFiU8nQSZM4F3VqfJ/z5EdnY296hEIKe4Ub/QVxQv6M2i2k4ROFXSdyWQ\nJ/p6\r\n=eAT9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb7rIezLCgfzyoGDE/Tj5DanwApLAZsyZCdTKeo9GKEQIhAPGisMD4+tsROmLueO385zh+149y2Gn413QFhH6yLyfV"}],"size":3175,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-3.0.0.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quick-format-unescaped_3.0.0_1528823130012_0.7522680132616779"},"_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":1528823130076,"_cnpm_publish_time":1528823130076,"dist-tags":{"latest":"4.0.4"}}