{"_id":"quick-format","_rev":"12-bf890ae533e753923e157428001b4c31","name":"quick-format","description":"Solves a problem with util.format","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"quick-format","version":"1.0.0","description":"Solves a problem with util.format in <= Node 5.9","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test"},"author":{"name":"David Mark Clements"},"devDependencies":{"fastbench":"^1.0.1"},"gitHead":"d85299c2293e338bb9dbd35be507f7a7582a3a32","_id":"quick-format@1.0.0","_shasum":"8946c42d714b77632288110aa49d63c44c0c1c79","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"8946c42d714b77632288110aa49d63c44c0c1c79","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-1.0.0.tgz","integrity":"sha512-txBqic38Dhl+Hc3bVepLkh4WcUDzqu+dgWOFWUrM0PoH4BvPEmRJ8xrFPUTYv18fxqS6ioIad2lRszJwbLylPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcHK/ffVrYKMUgn0ax4XMlT3L5V59iEyzs2iRlRnbdmgIhAKb8khwFijlvKrwgQRQbWH+6ybCO8IRbzvI0HhDMFGr/"}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-1.0.0.tgz_1458393020625_0.6206005911808461"}},"1.0.1":{"name":"quick-format","version":"1.0.1","description":"Solves a problem with util.format in <= Node 5.9","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test"},"author":{"name":"David Mark Clements"},"devDependencies":{"fastbench":"^1.0.1"},"gitHead":"1d2bab9e0ac523f5df4c88d0242858ea739c1e54","_id":"quick-format@1.0.1","_shasum":"90bea2ea3c0a0d4ff604a0cfbc634e4ea687db35","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"90bea2ea3c0a0d4ff604a0cfbc634e4ea687db35","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-1.0.1.tgz","integrity":"sha512-f63g+SkpRsqO5/IrkKRa/LzMvrlCyxYTq8OBnSEGGacQGlZ6MTO85Mm+XgvtpdrYRGXknA3ilYCVMWXYR3Gq+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZIsdLM+Wp8PNjBibtlDBmKkfFZAz1bRSZYmBK0DLxyQIhAN3Ex9xNTiPPHYvBASdIvv+AnKnWhNsNc/re1LaQ7tPj"}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-1.0.1.tgz_1458396519950_0.9291046001017094"}},"2.0.0":{"name":"quick-format","version":"2.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":{"fast-safe-stringify":"^1.0.4"},"gitHead":"238279fff64780ca74ed17687601ff50c0c20e36","_id":"quick-format@2.0.0","_shasum":"518a8df45fc682ea1b4d1fb8cf5670824175b553","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"518a8df45fc682ea1b4d1fb8cf5670824175b553","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.0.tgz","integrity":"sha512-j7BnvpGoTZVk/XC7InBlOnh6rZmYS5wQtWpvQNi8iYomYIBESd+QRY3fTCSlqHq4ThYgcMqyEx10X8pJ54FkvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKgUnZNKxiCImQ9PKnRDTvypTNy5BMXDxVkjrZkaoLRAiEAsJhj+LRZV8w6kwFYbLxNhpTmFgTi50AYhmZNxdQ/yqA="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/quick-format-2.0.0.tgz_1458567488326_0.6842416650615633"}},"2.0.1":{"name":"quick-format","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":{"fast-safe-stringify":"^1.0.4"},"gitHead":"501c0d5b74ab479694891b000fae74b1e76dcec2","_id":"quick-format@2.0.1","_shasum":"3879bdcac3ba209116a358e1e1e0eb395f018a5f","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.10.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"3879bdcac3ba209116a358e1e1e0eb395f018a5f","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.1.tgz","integrity":"sha512-rbfd+MW0IVxsgIbqe79cIz+um2kMjvkvB3/7DPcE4mzgSk1DaeWFnYQEXZxV4C2nPrin1UAanS4cxLvsuI5U+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9SVXyxf/cpLHyhCtrPhThQRCjTjEMQmCUx888+UuwDAiEA3Hndz80Fhc7EfKPp3a8jRrdJD5StjPpsFy7DMpjPa6w="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-2.0.1.tgz_1459882916820_0.14185461308807135"}},"2.0.2":{"name":"quick-format","version":"2.0.2","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":{"fast-safe-stringify":"^1.0.4"},"gitHead":"e55cb1e360f2e101c817b05d5de6331ad6e29f97","_id":"quick-format@2.0.2","_shasum":"53a0dc9414c8dffe4cac8f80648ac777936828d5","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.10.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"53a0dc9414c8dffe4cac8f80648ac777936828d5","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.2.tgz","integrity":"sha512-3uFBVfeNMOx3witLc6Tqd9VMMELaHPJCj90fLeQxLFr7XeCfON7wAS3JH6LpUYS7VDzzKTL6hep0a+ZbNknLZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHU0BQ4RXuy4lJBmcLtiQ+2XojujSImkvAcXZRATER/XAiBmre5l/3jjKpIzFnfnsMBoJPNNHiUH3XsQntFoeELQkQ=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-2.0.2.tgz_1459890128813_0.9897691963706166"}},"2.0.3":{"name":"quick-format","version":"2.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":{"fast-safe-stringify":"^1.0.8"},"gitHead":"432341eb2157c3eed01ad502a432be0088ddb517","_id":"quick-format@2.0.3","_shasum":"9ebf686ed94867cdd777815fb2ee0aa5e93f782b","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.10.1","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"9ebf686ed94867cdd777815fb2ee0aa5e93f782b","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.3.tgz","integrity":"sha512-mLJR9G8dzsnKbXxkn4/c40vBqT6ElxbN7tYznmS3bMEjgOV9+BibugpRUIDk14yieWNGBgdUIzrt2qrs14XxmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9CTeC4HB1GX28wkrbod6BmBC4mnggAflRyD1mG22RIAiAWTiJvCz1yWvYxb9YcbDSv8FPmfCOqJAO3MyVC/G2Tnw=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-2.0.3.tgz_1459985834721_0.8831034209579229"}},"2.0.4":{"name":"quick-format","version":"2.0.4","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":{"fast-safe-stringify":"^1.0.8"},"gitHead":"13d654e185bc75ad4709f1a1fd7d8114096e2bd1","_id":"quick-format@2.0.4","_shasum":"e0c63fc7c9de694d4561de56f518ba68fdd8094f","_from":".","_npmVersion":"2.14.17","_nodeVersion":"5.10.1","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"e0c63fc7c9de694d4561de56f518ba68fdd8094f","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.4.tgz","integrity":"sha512-lsoEC8L/YKr25F7MUgi3BE0/q/+FIvoFTdkISiWvVN8gvQkmGzZRN9j2TcnQmXaCyj5vt7ElaUVDCcmhDh0OZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6zzl41iSyHBhg6F5cg5A6Fz3OhI3s0nxQsKqlVgt25AiEAwzpwQrEULm3EvYTq41T9vIUYR22B5vqE2g9zyPJa04A="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/quick-format-2.0.4.tgz_1460406410347_0.7836144771426916"}},"2.0.5":{"name":"quick-format","version":"2.0.5","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":{"fast-safe-stringify":"^1.0.8"},"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":"759f612386b11a38e1c24b3892e0d333ad4a9160","_id":"quick-format@2.0.5","_shasum":"c4004549841dd5ef585cfaf02fe6488e601bdeee","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.7.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"c4004549841dd5ef585cfaf02fe6488e601bdeee","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.5.tgz","integrity":"sha512-8HYvDUbW4K4jXJrDFGpBkSSC1tfiYF6Kn4a5EcpJKrPEdluQeFQxO9wzJcEiMG9piE7SCsrqqG2gXPAUuS4KXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSbzspPD7zLpfSgBhKbaYBPt49XUrB4HMv/Bn8jROSMAiBAwJZOtGkiCSy8Q7J2znXlzRWmNTKqKaoDMzEDwzpAxA=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-2.0.5.tgz_1476456781312_0.7721697026863694"}},"2.0.6":{"name":"quick-format","version":"2.0.6","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":{"fast-safe-stringify":"^1.0.8"},"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":"58626f95dba57928e24086dcd3ab460e66bd8c80","_id":"quick-format@2.0.6","_shasum":"1611f74cbd2ebc19e4b4c653f7ef7f55c4928572","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.7.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"1611f74cbd2ebc19e4b4c653f7ef7f55c4928572","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.0.6.tgz","integrity":"sha512-5FPqdgMrxGM9CmcITCP+r4REl6iU87qW9RvyL5pco/E9BvK40j257XqwDcezpHmEhBgjsH909noyhvC8yYFU8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6bI79/oTsIqUz3JA1QFYN3pQ0UXaUvzwwqxBpj2tueAiEApy0+KYYKn1QfDwrhwIwn+RMx5dLftLzhImM0doygkgQ="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/quick-format-2.0.6.tgz_1476462362959_0.35567505611106753"}},"2.1.0":{"name":"quick-format","version":"2.1.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":{"fast-safe-stringify":"^1.0.8"},"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":"8743f5d1f28116e7b2cd0116836bd47ea0a8d507","_id":"quick-format@2.1.0","_shasum":"16a8984635c0f0c29fb0ce910de9c5ba57fdc01d","_from":".","_npmVersion":"4.4.1","_nodeVersion":"6.10.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"16a8984635c0f0c29fb0ce910de9c5ba57fdc01d","tarball":"https://registry.npmjs.org/quick-format/-/quick-format-2.1.0.tgz","integrity":"sha512-hPGA9pToWuVtsG3RvNjfELBmhPqaP8LAbhvDeAZ+t4boJofWv69A9zVSUx1qAf0xbhTqP9kund2xEoFH1VTCtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSNwShNxnUPhuA3wBL+23YFpjMTbZ356OBIuiIIAng5AiEA2ltCae7UnotMDQGeYMPHkQPSLPohrqvuphsKqR6mthw="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/quick-format-2.1.0.tgz_1489433432115_0.7576386991422623"}}},"readme":"# quick format\n\nSolves a problem with util.format\n\n## usage\n\n```js\nvar format = require('quick-format')\nvar options = {lowres: false} // <--default\nformat(['hello %s %j %d', 'world', {obj: true}, 4, {another: 'obj'}], options)\n```\n\n## options\n\n### lowres\n\nPassing an options object with `lowres: true` will cause quick-format any object with a circular as a string with the value '\"[Circular]\"'. The default behaviour is to label\ncircular references in an object, instead of abandoning the entire object. Naturally, \n`lowres` is a faster mode, and assumes you have made the decision to ensure the objects\nyou're passing have no circular references.\n\n## caveats\n\nWe use `JSON.stringify` instead of `util.inspect`, this means object\nmethods (functions) *will not be serialized*.\n\n##  util.format\n\nIn `util.format` for Node 5.9, performance is significantly affected\nwhen we pass in more arguments than interpolation characters, e.g\n\n```js\nutil.format('hello %s %j %d', 'world', {obj: true}, 4, {another: 'obj'})\n```\n\nThis is mostly due to the use of `util.inspect`. Use `JSON.stringify`\n(safely) instead which is significantly faster. \n\nIt also takes an array instead of arguments, which helps us \navoid the use of `apply` in some cases.\n\nAlso - for speed purposes, we ignore symbol.\n\n## Benchmarks\n\nWhilst exact matching of objects to interpolation characters is slower,\nthe case of additional objects is 3x faster. Further, using `lowres` mode\nbrings us closer to `util.inspect` speeds.\n\n```\nutil*100000: 205.978ms\nquickLowres*100000: 236.337ms\nquick*100000: 292.018ms\nutilWithTailObj*100000: 1054.592ms\nquickWithTailObjLowres*100000: 267.992ms\nquickWithTailObj*100000: 343.048ms\nutil*100000: 212.011ms\nquickLowres*100000: 226.441ms\nquick*100000: 296.600ms\nutilWithTailObj*100000: 1020.195ms\nquickWithTailObjLowres*100000: 267.331ms\nquickWithTailObj*100000: 343.867ms\n```\n\n## Acknowledgements\n\nSponsored by nearForm\n","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"time":{"modified":"2022-06-25T07:06:39.166Z","created":"2016-03-19T13:10:22.796Z","1.0.0":"2016-03-19T13:10:22.796Z","1.0.1":"2016-03-19T14:08:42.400Z","2.0.0":"2016-03-21T13:38:10.484Z","2.0.1":"2016-04-05T19:01:59.307Z","2.0.2":"2016-04-05T21:02:11.011Z","2.0.3":"2016-04-06T23:37:16.866Z","2.0.4":"2016-04-11T20:26:51.680Z","2.0.5":"2016-10-14T14:53:02.941Z","2.0.6":"2016-10-14T16:26:04.125Z","2.1.0":"2017-03-13T19:30:34.227Z"},"author":{"name":"David Mark Clements"},"readmeFilename":"readme.md","homepage":"https://github.com/davidmarkclements/quick-format#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/quick-format.git"},"bugs":{"url":"https://github.com/davidmarkclements/quick-format/issues"},"license":"MIT"}