{"_id":"maxstache","_rev":"11-629b9141f43ab9e0a7f0323b777c7cf6","name":"maxstache","description":"Minimalist mustache template replacement","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.0":{"name":"maxstache","version":"1.0.0","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{},"files":["index.js","bin/*"],"gitHead":"d79bcf24cdec2fd5b7c08f89bf32f3c806279853","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.0","_shasum":"5087d628dc2884014169c516632a2662cb62cbc4","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"5087d628dc2884014169c516632a2662cb62cbc4","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.0.tgz","integrity":"sha512-TM5Ofn9aQQDlBGGWf2XEJUUqIsX5zUSrZHeXpM8IfdzcSNC0juS5Usk7qCpjAd2e6i0AZdX1vH259r43Vxw9RA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDG6234zmRr1rECvyTCspNK9TNB9lbKYrWc+K/yqoZJMAiB2h4iOnbGqMUK4wlo2k5BYcxAdRRWQEGo15YXNMTvY8A=="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.1":{"name":"maxstache","version":"1.0.1","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"standard":"^5.3.1"},"files":["index.js","bin/*"],"gitHead":"3d912e95f9729f5baae5752cc3b53e1f7f5fc872","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.1","_shasum":"fb1dd0475eb58f14ef2270fac23fd5443c4a184c","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"fb1dd0475eb58f14ef2270fac23fd5443c4a184c","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.1.tgz","integrity":"sha512-zdto6XHWQy/JD4JcuaIHPG7pbp0Q5dRWEnOSDemZSVw3j/h+6RMcd4ivc9003cyXIU0PkltSwBhxI53NI3SqyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgPXSRkIAU/IdWXXU0px6EyID+UJyV2fPKnL2r6xMI5AiA/jMupoXEDmIb0CrXkB3xeHzop3RHli53m9JBIUi2oYw=="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.2":{"name":"maxstache","version":"1.0.2","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"dependency-check":"^2.5.1","istanbul":"^0.3.22","standard":"^5.3.1","tape":"^4.2.1"},"files":["index.js","bin/*"],"gitHead":"a5b8450911ad35958683866e38a26e2fa120d1b3","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.2","_shasum":"8893c61e9adc6077eaa8fecceb1655e3c666f6ef","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"8893c61e9adc6077eaa8fecceb1655e3c666f6ef","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.2.tgz","integrity":"sha512-/L+I200oxGHWkTIuqiue9HUJfPE/D2Qsgqyn5w0Q4EZdVFY9UyBINyAbHVbsGOv3hQT7yZxh5k5jMbT67tGp+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFP4JTGcIVbMm16cmcatnqkmqB6IEjv3F9K3LN6x43oZAiEAqdOAxzrhiqLo4RQy80QIgniPs4zOpCI3uyyaUgdJ9vk="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.3":{"name":"maxstache","version":"1.0.3","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"dependency-check":"^2.5.1","istanbul":"^0.3.22","standard":"^5.3.1","tape":"^4.2.1"},"files":["index.js","bin/*"],"gitHead":"d953f961847cf89ab709253bea00e3bf0ea9d6ac","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.3","_shasum":"e4f1124329f5a4aacd1541bce0287bac01210c05","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"e4f1124329f5a4aacd1541bce0287bac01210c05","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.3.tgz","integrity":"sha512-v/lG1c8s6VPsdMQK8EKv4FZRbhvfJipGUYhYJUWr/d4lCllE5XUSqlkc94xdyrAjE5W/GHfh/b1eUJqp6Kf5sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7MZRmYkgmGY53RcLF06oCUzF0D0pqZyhj2Aig7ZFJEAiAFowwT0azf/vvs6U6rimdcofvBcPtA5RyGHurHFa0oSQ=="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.4":{"name":"maxstache","version":"1.0.4","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"dependency-check":"^2.5.1","istanbul":"^0.3.22","standard":"^5.3.1","tape":"^4.2.1"},"files":["index.js","bin/*"],"gitHead":"0a10af0cf204fe354194f5c1d5b664071b4d70a9","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.4","_shasum":"0d245cae19af16a59d72f4a82520537c5f5e0878","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"0d245cae19af16a59d72f4a82520537c5f5e0878","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.4.tgz","integrity":"sha512-0XjOctyPjpj2USccBHBEoMnQZVipLHr00hSvSUjK8TN7chqV3jkehPQXutpsiPOm2MCRcj2Lq3HDiBDxWvB4Hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBdnrPzCOWdJ23T4KCNrkxDz6bPl8jRTnV76qoOarIKQIgX6KegynkKm81eLPIsnklrruBHwDiVhxWRJ/gBzsvEK4="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.5":{"name":"maxstache","version":"1.0.5","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"dependency-check":"^2.5.1","istanbul":"^0.3.22","standard":"^5.3.1","tape":"^4.2.1"},"files":["index.js","bin/*"],"gitHead":"7f05cbf30ca8d5f4ab9dc8d5c0fe07bff9a46a39","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.5","_shasum":"73ebd6a015c8648fe03c0849580ca416daa700c5","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"73ebd6a015c8648fe03c0849580ca416daa700c5","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.5.tgz","integrity":"sha512-mYSADzMIOO+TsHiSDKZ/e6cUJLx2qjC8KyEH8/CoRJ9xSZg/Jl8sE9NXDFQ3uveYZp3F1z6LtUGSYYEglDDPfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGDFipcoTLB5QIr0pesks8MXggHw0lhqiiv9gsUkdbrAiEAxxmt4k1dMfGw4wfymbRpatLfIY+5PCsXAG8qiOzCw7s="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.6":{"name":"maxstache","version":"1.0.6","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"dependency-check":"^2.5.1","istanbul":"^0.3.22","standard":"^5.3.1","tape":"^4.2.1"},"files":["index.js","bin/*"],"gitHead":"d779c341fa1e76245a41dce93dc96f23ad6414ed","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.6","_shasum":"4d36ce4f4cbf82febb47828f77aa077b9a6da9a4","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"4d36ce4f4cbf82febb47828f77aa077b9a6da9a4","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.6.tgz","integrity":"sha512-qFvPvrG8Eah4XZ3tTwzkkLOieLsWNKR3OZo7QItcqsVup2tXnc++5VgsipWqq/rkkcbmWb7GfEV9CQHFxp6G/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApkxvoht6VcneBtA8FTDTccFnsUyb2cYu04N9jqBpEbAiAGtIpJY6Q0amr7aTm7QdmVi00IW0JcC3DZgAw6sh8MNg=="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]},"1.0.7":{"name":"maxstache","version":"1.0.7","description":"Minimalist mustache template replacement","main":"index.js","scripts":{"deps":"dependency-check . && dependency-check . --extra --no-dev","deps:pkg":"ncu","deps:update":"ncu -a","test":"standard && npm run deps && NODE_ENV=test node test","test:cov":"standard && npm run deps && NODE_ENV=test istanbul cover test.js"},"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"keywords":["mustache","template","minstache"],"license":"MIT","dependencies":{},"devDependencies":{"dependency-check":"^2.5.1","istanbul":"^0.3.22","standard":"^5.3.1","tape":"^4.2.1"},"files":["index.js","bin/*"],"gitHead":"89b309743e3c1185d0bb2cc12ec6b1fb09615ad7","bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","_id":"maxstache@1.0.7","_shasum":"2231d5180ba783d5ecfc31c45fedac7ae4276984","_from":".","_npmVersion":"2.14.5","_nodeVersion":"4.0.0","_npmUser":{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"},"dist":{"shasum":"2231d5180ba783d5ecfc31c45fedac7ae4276984","tarball":"https://registry.npmjs.org/maxstache/-/maxstache-1.0.7.tgz","integrity":"sha512-53ZBxHrZM+W//5AcRVewiLpDunHnucfdzZUGz54Fnvo4tE+J3p8EL66kBrs2UhBXvYKTWckWYYWBqJqoTcenqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCQdzoIk7oVgJC6ObaYXUblFzaGeNo1w/YVArkyLt5WAiEAxspN23esZLtZCtDZrrJ4ca5MFCeDNayxwO096z6jSEk="}]},"maintainers":[{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}]}},"readme":"# maxstache [![stability][0]][1]\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![Downloads][downloads-image]][downloads-url]\n[![js-standard-style][standard-image]][standard-url]\n\nMinimalist mustache template replacement. Works extremely fast on one-off\nreplacements and doesn't escape any values.\n\n## Installation\n```sh\n$ npm install maxstache\n```\n\n## Usage\n```js\nconst maxstache = require('maxstache')\n\nconst str = 'My name is {{name}}'\nconst ctx = { name: 'jjjohnny' }\nmaxstache(str, ctx)\n// => 'My name is jjjohnny'\n```\n\n## API\n### nwStr = maxstache(str, ctx)\nReplace `{{<var>}}` style variables in a string with values from a context.\nVariable replacement doesn't escape values.\n\n## FAQ\n### Why not use {mus,min}stache?\n`minstache` was built as a minimalist replacement for `mustache`, but is\nunfortunately no longer maintained. This package is built as a smaller, faster\nalternative to `minstache` that makes no assumptions about the file types (e.g.\nno HTML-style escaping by default).\n\n### Why doesn't maxstache escape values?\nTemplate string escaping is useful for more than HTML. When building templates\nfor a variety of languages, escaping assumptions merely get in the way. If you\nwant to escape values, it's easy to pass the string result through an escape\nfunction or escape the variable values before passing them into this function.\nHurray for composition!\n\n### 25 lines is too much, make it shorter!\n:rotating_light: CODE GOLF INITIATED :rotating_light:\n```js\nmodule.exports = function maxstache (str, ctx) {\n  return str.split(/\\{\\{|\\}\\}/).map((t, i) => !(i % 2) ? t : ctx[t]).join('')\n}\n```\nShout out to [@divinegod](https://github.com/divinegod) and\n[@someoneweird](https://github.com/SomeoneWeird) for thinking of ways to do\nthis in less lines.\n\n## See Also\n- [maxstache-stream][2]\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[0]: https://img.shields.io/badge/stability-stable-brightgreen.svg?style=flat-square\n[1]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[npm-image]: https://img.shields.io/npm/v/maxstache.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/maxstache\n[travis-image]: https://img.shields.io/travis/yoshuawuyts/maxstache/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/yoshuawuyts/maxstache\n[codecov-image]: https://img.shields.io/codecov/c/github/yoshuawuyts/maxstache/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/yoshuawuyts/maxstache\n[downloads-image]: http://img.shields.io/npm/dm/maxstache.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/maxstache\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: https://github.com/feross/standard\n\n[2]: https://github.com/yoshuawuyts/maxstache-stream\n","maintainers":[{"name":"insin","email":"jonathan.buchanan@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"time":{"modified":"2022-06-19T17:00:58.997Z","created":"2015-10-06T06:01:51.693Z","1.0.0":"2015-10-06T06:01:51.693Z","1.0.1":"2015-10-06T06:06:13.637Z","1.0.2":"2015-10-06T06:09:52.461Z","1.0.3":"2015-10-06T09:10:45.937Z","1.0.4":"2015-10-06T09:13:39.321Z","1.0.5":"2015-10-06T09:18:25.994Z","1.0.6":"2015-10-06T15:36:09.853Z","1.0.7":"2015-10-07T02:46:42.090Z"},"homepage":"https://github.com/yoshuawuyts/maxstache#readme","keywords":["mustache","template","minstache"],"repository":{"type":"git","url":"git+https://github.com/yoshuawuyts/maxstache.git"},"bugs":{"url":"https://github.com/yoshuawuyts/maxstache/issues"},"license":"MIT","readmeFilename":"README.md"}