{"_id":"format","_rev":"25-8f45a13ff89b68c0b12bc36ea96e93a1","name":"format","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"format","version":"0.1.0","author":{"name":"Sami Samhuri","email":"sami.samhuri@gmail.com"},"_id":"format@0.1.0","homepage":"http://samhuri.net/node/format","bugs":{"web":"http://github.com/samsonjs/format/issues","mail":"sami.samhuri+format@gmail.com"},"dist":{"shasum":"fb5281b118b36e78b06b2ae3f1219879a2a7ce83","tarball":"https://registry.npmjs.org/format/-/format-0.1.0.tgz","integrity":"sha512-CErgHGfjqxvOYmbrFL+bAnEtH8fg+IfB9wtq15tz2mXwx0MNrqLuzI5wuIe+rIg/445BUKRUf39YYCfRMVnkYw==","signatures":[{"sig":"MEUCIAMxJmRxscN1XeC3Ex5F8aMyo+g1FW1m0fRpdYGXNsSGAiEAi6FdY2qMB1Rk6HR7PR8gEDQ15G8IEQ3Nxd7b+FE93hs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","engines":{"node":">=0.3.0"},"licenses":[{"url":"http://github.com/samsonjs/format/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"http://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"0.2.7-2","description":"printf and sprintf for JavaScript","directories":{"lib":"./lib"},"_nodeVersion":"v0.3.0","_nodeSupported":true},"0.1.1":{"name":"format","version":"0.1.1","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.1.1","homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"3074f01de024a0874f2db840b8f5c3b9dd10ec0d","tarball":"https://registry.npmjs.org/format/-/format-0.1.1.tgz","integrity":"sha512-FpBGaKJhQI387oT/sLVAUUoS21uCOkcon8gzgR/Adpl4TnPnV2SUN8yxwAuBlA1h+ItsCOrJgJBpuwRWj/sgkw==","signatures":[{"sig":"MEUCIBB0Z5cUw13ZztXHf5LUKCwED/EslxIij+sdaYdciFGmAiEAkJ+qyHx9m52XqvZByk3jcjUVv/MPrVzQzfUDfNvWECs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","engines":{"node":"0.4.x"},"scripts":{},"licenses":[{"url":"http://github.com/samsonjs/format/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"1.0.9-1","description":"printf, sprintf, and vsprintf for JavaScript","directories":{"lib":"./lib"},"_nodeVersion":"v0.4.8","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.1.2":{"name":"format","version":"0.1.2","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.1.2","homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"197ce2f6e8e8d23af09b9d1ad66987a4392acf36","tarball":"https://registry.npmjs.org/format/-/format-0.1.2.tgz","integrity":"sha512-KP6vUrPfKSHQcLII0ozPH7ewsexoq79aoJrfRRF17LNEPTB6c4Lrn7+LNloi/QdMrqeDGgtTKMks5iFqtuZ2Uw==","signatures":[{"sig":"MEUCIAO/rU8aGiw2/wOM0R8zoRVlzS+wV+Xlvl2w4IWWg/kqAiEA+9c1Qmbe7lUxgtcl3U8mfPlqowLtmPmQEYifSRxRNVM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","engines":{"node":"0.4.x || 0.5.x"},"scripts":{},"licenses":[{"url":"http://github.com/samsonjs/format/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"1.0.15","description":"printf, sprintf, and vsprintf for JavaScript","directories":{"lib":"./lib"},"_nodeVersion":"v0.4.9","_npmJsonOpts":{"file":"/Users/sjs/.npm/format/0.1.2/package/package.json","wscript":false,"serverjs":false,"contributors":false},"dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.1.3":{"name":"format","version":"0.1.3","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.1.3","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"2c7209e3b95bdf25af6627f2d2dbcb80a73ed70d","tarball":"https://registry.npmjs.org/format/-/format-0.1.3.tgz","integrity":"sha512-aKrAsHxX4lD09FhM4qIxOBUEZCEQmtG2OTCAluYPQ43yGNHs5FIHVa67+ElbxiRPVdRNLTTPknXwQs0PAszDSg==","signatures":[{"sig":"MEUCIQC9TRxul/WGcHIZssCTLjxdHdJMIf9BOHbgZK7LuqtyTgIgK4rrXnQRkBGQRoJsgVn1jl4HFTVTUtutr82CvXFm6tE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","engines":{"node":"0.4.x - 0.6.x"},"_npmUser":{"name":"sjs","email":"sami@samhuri.net"},"licenses":[{"url":"http://github.com/samsonjs/format/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"1.0.104","description":"printf, sprintf, and vsprintf for JavaScript","directories":{"lib":"./lib"},"_nodeVersion":"v0.6.0","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":false},"0.1.4":{"name":"format","version":"0.1.4","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.1.4","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"848c3578a7e46635a7106d236aa7eaccff2c1358","tarball":"https://registry.npmjs.org/format/-/format-0.1.4.tgz","integrity":"sha512-uASpQT7ERZcUpvQ8DIh0iBknS3ilyjLXBycbGbHm73mPTVcmrQkQyp/YlClOGZK0K6dwuQZCXxE4X6gApDLEjw==","signatures":[{"sig":"MEYCIQCfIheTEmEk/ArwSE0pSEWxUS+1IHgE23dWZYScNXxDnQIhAOw7keRqPc1wT9ihyd3p9ubnUfnvFioql3lXQF92anm/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index","engines":{"node":">=0.4.x"},"_npmUser":{"name":"sjs","email":"sami@samhuri.net"},"licenses":[{"url":"http://github.com/samsonjs/format/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"1.0.104","description":"printf, sprintf, and vsprintf for JavaScript","directories":{"lib":"./lib"},"_nodeVersion":"v0.6.0","dependencies":{},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.2.0":{"name":"format","version":"0.2.0","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.2.0","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"3b276d6972720afe6df5b607ca452cda209b9605","tarball":"https://registry.npmjs.org/format/-/format-0.2.0.tgz","integrity":"sha512-Ctf4xq48Oy1K5wh1JnlLAVYFaaiD1bNqf4/CzbWVTbyo6699NUuPR0cMVPTp5Bvek0mJYGu6nxlkIW8QB8x8QA==","signatures":[{"sig":"MEYCIQC7meh9EjInIDBJ3qX3Q1lO/QQywfTCUso8N2tjwn3oaQIhAJMqiiT+DgYJQL4py7bwJnGS87SwUFpWEFLvdn3kv1J+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./format","engines":{"node":">=0.4.x"},"_npmUser":{"name":"sjs","email":"sami@samhuri.net"},"licenses":[{"url":"http://github.com/samsonjs/format/raw/master/LICENSE","type":"ISC"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"1.1.65","description":"printf, sprintf, and vsprintf for JavaScript","directories":{},"dependencies":{},"devDependencies":{}},"0.2.1":{"name":"format","version":"0.2.1","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.2.1","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"4b6aad379b5d1aadc7feec5bf7685f93c2b7d61d","tarball":"https://registry.npmjs.org/format/-/format-0.2.1.tgz","integrity":"sha512-sF0VRPVBfihGxycRGc1tXs6HA9B1OK6wab+Fk0cO6XzYT2vin28PLmEL0+5W+GTW3dUfFOVFsPLqfutMWayXWQ==","signatures":[{"sig":"MEQCICH7n1GUG3ng1DfLTYgNayyXCj8OZJHtfFd6P3UoLEIKAiANUBN0esczdu9fWmenxxaxGu6Wu4kfbS+SxVZhSibhgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./format.js","_from":".","engines":{"node":">=0.4.x"},"_npmUser":{"name":"sjs","email":"sami@samhuri.net"},"licenses":[{"url":"http://sjs.mit-license.org","type":"MIT"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"1.2.14","description":"printf, sprintf, and vsprintf for JavaScript","directories":{},"dependencies":{},"devDependencies":{}},"0.2.2":{"name":"format","version":"0.2.2","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"_id":"format@0.2.2","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"homepage":"http://samhuri.net/proj/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"d6170107e9efdc4ed30c9dc39016df942b5cb58b","tarball":"https://registry.npmjs.org/format/-/format-0.2.2.tgz","integrity":"sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==","signatures":[{"sig":"MEYCIQCM96rFSGG9ljOKJcGJK8BDQEpAPgxOtNe25lhvChmQwQIhALzdlHKH/HUhWmH2dZJlPBwub/OduK5+SaqyciEKire6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./format.js","_from":".","_shasum":"d6170107e9efdc4ed30c9dc39016df942b5cb58b","engines":{"node":">=0.4.x"},"gitHead":"4f898096759776b7c84fa7a25b13c923dadfe46e","scripts":{},"_npmUser":{"name":"sjs","email":"sami@samhuri.net"},"licenses":[{"url":"http://sjs.mit-license.org","type":"MIT"}],"repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"2.12.1","description":"printf, sprintf, and vsprintf for JavaScript","directories":{},"_nodeVersion":"0.12.7","dependencies":{},"devDependencies":{}},"1.0.0":{"name":"format","version":"1.0.0","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"license":"MIT","_id":"format@1.0.0","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"homepage":"https://samhuri.net/projects/format","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"5a0f213fb3da7a26d52a5ebf7f05c24b8c87a516","tarball":"https://registry.npmjs.org/format/-/format-1.0.0.tgz","fileCount":8,"integrity":"sha512-Ma0z75TIs2onl3s8jQWe2AZei5UVdzsG/nACfd9EzRWFQA2KyPT0zni38hr9X5Pj17ZhaTFE31D4VDmYPBtL/g==","signatures":[{"sig":"MEQCIGncka1c6cQAfWYC0nbWb/SLA5o+w4qAfHGWUV72NIhUAiAVEIyWmiD4c+nYNMaQAEsgk4x5D2jbbo3VuDnbedrSWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC/PznFMR8Gte/4lQFcK5fVfdvt+zZpCwX9U5o5J499wQIgBmjbpQZeJRIpLWX4q0aOoDdaW0UBt0MoTIiS5TstZq0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10022},"main":"./builds/format.cjs","type":"module","types":"./types/types.d.ts","unpkg":"./builds/format.min.js","module":"./src/format.js","engines":{"node":"^12.20.0 || >=14.13.0"},"exports":{".":{"import":{"types":"./types/types.d.ts","default":"./src/format.js"},"default":"./src/format.js","require":{"types":"./types/types.d.cts","default":"./builds/format.cjs"}},"./src/*":"./src/*","./builds/*":"./builds/*","./package.json":"./package.json"},"gitHead":"26638bd6f5c0eb305fa04846b6301fb56cc719e5","scripts":{"test":"node --test test_format.js","build":"rollup -c --silent","prepack":"npm run build","test-min":"FORMAT_TEST_MIN=1 node --test test_format.js"},"_npmUser":{"name":"sjs","email":"sami@samhuri.net"},"jsdelivr":"./builds/format.min.js","repository":{"url":"git://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"11.17.0","description":"printf, sprintf, and vsprintf for JavaScript","directories":{},"_nodeVersion":"26.4.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"4.67.4","@rollup/plugin-terser":"1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/format_1.0.0_1794086279516_0.12011790239351694","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"_id":"format@1.0.1","bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"dist":{"shasum":"9ec354705434107d3a1d0b662a15e4c4a61ede05","tarball":"https://registry.npmjs.org/format/-/format-1.0.1.tgz","integrity":"sha512-md5XCIq+4NhKefO+hMw6ceBjUhRABJdh4UnPsJBFhrKGho7vu0zejBpXiD0PB3gRkpFKc8iHQBV4BkS92+mXMQ==","fileCount":8,"unpackedSize":10028,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/format@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCpG9qi4JR7blcfxdMfyPM9a3WQQx7gcQ29EvDuDYfb0AIhAMhfpm6mHKDAuoUhz5hlnNE4vYaq9F9rqJSH8tOZivOG"}]},"main":"./builds/format.cjs","name":"format","type":"module","types":"./types/types.d.ts","unpkg":"./builds/format.min.js","author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"module":"./src/format.js","engines":{"node":"^12.20.0 || >=14.13.0"},"exports":{".":{"import":{"types":"./types/types.d.ts","default":"./src/format.js"},"default":"./src/format.js","require":{"types":"./types/types.d.cts","default":"./builds/format.cjs"}},"./src/*":"./src/*","./builds/*":"./builds/*","./package.json":"./package.json"},"gitHead":"03054732de93018e2dae5ffc2afadfe22e729233","license":"MIT","scripts":{"test":"node --test test_format.js","build":"rollup -c --silent","prepack":"npm run build","test-min":"FORMAT_TEST_MIN=1 node --test test_format.js"},"version":"1.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"da5dded5-19b9-4bd9-812e-dc4e12c4d298"},"approver":{"name":"sjs","email":"sami@samhuri.net"}},"homepage":"https://samhuri.net/projects/format","jsdelivr":"./builds/format.min.js","repository":{"url":"git+https://github.com/samsonjs/format.git","type":"git"},"_npmVersion":"11.20.0","description":"printf, sprintf, and vsprintf for JavaScript","directories":{},"maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"_nodeVersion":"26.13.0","devDependencies":{"rollup":"4.67.4","@rollup/plugin-terser":"1.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/format_1.0.1_1794091852454_0.74316282991142"},"_hasShrinkwrap":false}},"time":{"created":"2011-06-05T23:45:32.359Z","modified":"2026-11-07T22:50:52.855Z","0.1.0":"2011-06-05T23:45:32.359Z","0.1.1":"2011-06-05T23:45:32.359Z","0.1.2":"2011-07-29T07:08:58.777Z","0.1.3":"2011-11-05T22:59:35.897Z","0.1.4":"2011-11-06T02:00:26.183Z","0.2.0":"2013-03-08T04:26:57.762Z","0.2.1":"2013-09-07T18:31:53.130Z","0.2.2":"2016-01-27T00:02:03.898Z","1.0.0":"2026-11-07T21:17:59.611Z","1.0.1":"2026-11-07T22:50:52.564Z"},"bugs":{"url":"https://github.com/samsonjs/format/issues","email":"sami@samhuri.net"},"author":{"name":"Sami Samhuri","email":"sami@samhuri.net"},"license":"MIT","homepage":"https://samhuri.net/projects/format","repository":{"url":"git+https://github.com/samsonjs/format.git","type":"git"},"description":"printf, sprintf, and vsprintf for JavaScript","maintainers":[{"name":"sjs","email":"sami@samhuri.net"}],"readme":"format\n======\n\nprintf, sprintf, and vsprintf for JavaScript\n\n[![version on npm](https://img.shields.io/npm/v/format.svg?style=flat-square)](https://www.npmjs.com/package/format) [![node version 12 and up](https://img.shields.io/badge/node->=12-brightgreen.svg?style=flat)](https://www.npmjs.com/package/format) [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat)](https://sjs.mit-license.org)\n\nInstallation\n============\n\n`npm install format`\n\nIn a browser without a bundler, load the minified build with a script tag. It defines `format`, `printf`, and `vsprintf` as globals.\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/format@1/builds/format.min.js\"></script>\n```\n\nUsage\n=====\n\n```js\nimport format from 'format';\n// or with CommonJS\n// const format = require('format');\nconst { printf, vsprintf } = format;\n// or if you want to keep it old school\nconst sprintf = format;\n\n// Print 'hello world'\nprintf('%s world', 'hello');\n\nconst what = 'life, the universe, and everything';\nconst out = format('%d is the answer to %s', 42, what);\nconsole.log(out);\n// => '42 is the answer to life, the universe, and everything'\n\nvsprintf('%d is the answer to %s', [42, what]);\n// => '42 is the answer to life, the universe, and everything'\n\n// you can format values as JSON with %j\nconst value = { answer: 42 };\nconst out2 = format('%j', value);\nconsole.log(out2);\n// => '{\"answer\":42}'\n```\n\nSupported format specifiers: b, c, d, f, j, o, s, x, and X.\n\nSee `man 3 printf` or `man 1 printf` for details. `j` is an extension that formats values as JSON.\n\nPrecision is supported for floating point numbers.\n\nLicense\n=======\n\nCopyright 2010 - 2026 Sami Samhuri sami@samhuri.net\n\n[MIT license](https://sjs.mit-license.org)\n","readmeFilename":"Readme.md","users":{"sapjax":true,"ivp-dev":true,"balazserdos":true}}