{"name":"quick-format-unescaped","version":"3.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":"fbcab678f50e83305ee10d93c564e19d4dbbc971","_id":"quick-format-unescaped@3.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-Tnk4iJQ8x3V8ml3x9sLIf4tSDaVB9OJY/5gOrnxgK63CXKphhn8oYOPI4tqnXPQcZ3tCv7GFjeoYY5h6UAvuzg==","shasum":"e1e8526f6aa56dc5452926111461e85755f79acf","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-3.0.1.tgz","fileCount":7,"unpackedSize":9229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2xxnCRA9TVsSAnZWagAAfbAP/jH3wisJZB/w6aKRAIqO\nvT2bpcWMKjO6vSxJqhvuTusXiyhG8X9fOG9D5adMrFmInBmjZ1a/O2Qkeabd\nT1MEJS3uc7bFx1sPZfRCem9QZVExnkv5Hg4VYmFPEzhIILLkQpcp0pznmqOB\nRSQHFou3Z4WthRF0J2b+0PLBk8mYXprafK5HospbRt5FwxRY6WohSQjKfSKK\nqFVzVu0wl0qI1CuxWgS7/Zb14w6LigwXMlVVhHyBd2ifsL5y9pTHFzN5lpLV\nIfvbZQ4jhfQJaKb10cE/CNv6nSR3pmwVUG+B925KCfUbURyG2sKRFuXQlHNs\nUxonnylIO70kpynyZgkgY9yKaJb7K4O5Fh5jP60gMztg9nK2W3tPaRNMFafB\ngFcidlcDT8Lpumr6Dimyp36Kit4UWhDs7p/yYyENpsznPn80tsYqIHv2Uj2P\nm4RRl35EfDbq6VDXJAk002pncJ+4QQO+kg9x+EAuEF4fwylcGlYBi0e7VS7Y\nCDHW/DD3brLFUQ77m0P81AsTrHeVSUtrm4iYa8BydjiKDgaviwy2ip2RgqHe\nZF2AdDTZa9Hq10KU4dw4/vIj7QmBzAUihfmYg3L8IxfdnvBIchN8YLbI5tw8\noSQglm+GaMIbOgN5EW7wbt94f7tct6Uafjki8gjG+N8GHScREGI5yFFRqus1\n4J3N\r\n=XwT4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5uDNxBYdnsmiWZQdGRxrmAaI7STvAIGIP7L/V9RQGpgIhAI85ZUcjYlE/WoYUkMVa5OhJt6DfC7S8uXjvOHtlDp4V"}],"size":3389,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-3.0.1.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quick-format-unescaped_3.0.1_1541086310698_0.7210782984569137"},"_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":1541086310817,"_cnpm_publish_time":1541086310817,"dist-tags":{"latest":"4.0.4"}}