{"name":"quick-format-unescaped","version":"3.0.3","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":"9e5147d77fc2cc1b7bc6ad391647e75b6792afec","_id":"quick-format-unescaped@3.0.3","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-dy1yjycmn9blucmJLXOfZDx1ikZJUi6E8bBZLnhPG5gBrVhHXx2xVyqqgKBubVNEXmx51dBACMHpoMQK/N/AXQ==","shasum":"fb3e468ac64c01d22305806c39f121ddac0d1fb9","tarball":"http://registry-npm.ywwl.com/quick-format-unescaped/download/quick-format-unescaped-3.0.3.tgz","fileCount":7,"unpackedSize":9465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdklK+CRA9TVsSAnZWagAA+wsP/0tKHWAfLZiYWD2lz1IR\nsbXWX+olvsyZN5jEN/ssUawEX90t4gbPkhpJF21MosNzh1Z+sfreT+Eq5+4o\nSNloeIdkFNJRGYVEpGVJ2SOsOuMjHHq3DqnPjbZh4+y426xtZsaT17sOt0vz\nhWKU1BzkuVy8mNbhqQ9TpRak+LihggOzbu1AZCBN+iyLU7jrhdfQAsVlBirX\naAY7Rq8q9HPIyUgibHqf0p0ZhLHfUlGbyj+8vxdQ9IwcYgwZG2UFjjgLjjnb\nU1VnyLPVPCQPlxmUFHAC16vNMZNxe/452dv6rtPzJoc7rPMWW8KMAQzEl9a8\nalPERHKObAk6rOXoYXClltuY9lbvDDDi2CPSwY7Z8fv0oY3td0pWP5wun86C\nIRhSDNzOFMesqCFkOL6eVCBpLkcaLxdBTWg1nYUHcvHlDk0coUUSfM6RmDmo\ntg+Ib/8TmF9I09NLPT7ohqRzzhlt1V6S5zd1KcEeBKXiyPRZnsGTbPWGjeXt\nVC+mssl7qu+kBIkXp1eNESj/EjtozZyi0G/Vj+BhHpGzB3NGMP01l9vgvtWp\nYmSQRJchmQxBgzdxQTPfUnZiDT912Kh4f8sUAHCNad/Tdt6IjUMkJxTWV+uh\nJ4wRJfWV5r9PpTg3UPT70XsOv6gY8A6v5H300af0q8o0P07WC4J/03IT2FMr\nqLQk\r\n=6YPh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8WFZvPm0jJ4xgYyuKB3nmLuXRCQI3+XVtqpgJuQgcNQIgPbee695OQbndjb05wbU53Q7G/bBcKq8Ae+gSvxzsRwo="}],"size":3458,"noattachment":false,"key":"/quick-format-unescaped/-/quick-format-unescaped-3.0.3.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_3.0.3_1569870526291_0.010767739115350894"},"_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":1569870526486,"_cnpm_publish_time":1569870526486,"dist-tags":{"latest":"4.0.4"}}