{"_id":"es6-template","_rev":"25-305f3455d7552469d953e3c0fad61685","name":"es6-template","description":"Easy and small template engine for the browser and nodejs.","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.0":{"name":"es6-template","version":"0.0.0","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^1.2.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["easy","engine","es","regex","simple","template"],"bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@0.0.0","_shasum":"e06c6a4e41cfd6860874a2ccb37cc5ad7465c542","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"e06c6a4e41cfd6860874a2ccb37cc5ad7465c542","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-0.0.0.tgz","integrity":"sha512-s4wSBhp1GWui2X0vvRyVHWCHvTVUGdtWlMYYMFIDTfuO80V3B36NTsdZ42+A2mYdI7rMPWbKcbGcMfCYmrPuMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE5zs2FuCtgYgeaeCiC/60AnbyXFk28LOyxEvCiHtoIQIgKUnRCfEKOI0G0B5WB7auPI8GNHvP0blUtbIbd2N/TF4="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"0.1.0":{"name":"es6-template","version":"0.1.0","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^1.2.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["easy","engine","es","regex","simple","template"],"gitHead":"71f6ba294025519e41fe197aa951f0331805567c","bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@0.1.0","_shasum":"fc35f511c15cc46aef8b50c267851dfb98cead45","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"fc35f511c15cc46aef8b50c267851dfb98cead45","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-0.1.0.tgz","integrity":"sha512-rMRsJIM4Fe5DKvPk0+k7Op3e/oxH5gOja4YbUlb/WCfkiIxl+VfJJ3YwUME1jaHeofRboH6f/TwbfbDRdEMp6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEA9AofFGNnWkRXUMmmXTHJCaqKcSoNVipbiCJR3zO6NAiAieSYPVgSPbsQKQjD5iOLUsmO3+cR5tTcMn9BZP0zkFQ=="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.0":{"name":"es6-template","version":"1.0.0","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^1.2.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["easy","ecma","ecmascript","engine","es6","regex","simple","small","string","template","tpl"],"gitHead":"88b95d0df3721ab23908e91543cb80c68c5fc17e","bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@1.0.0","_shasum":"3242eb545f88c7856a4f309c4f86e751d84ebae4","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"3242eb545f88c7856a4f309c4f86e751d84ebae4","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-1.0.0.tgz","integrity":"sha512-EFRUJhSZP9IX2NTwV8eQHXTrH4B71v9353i7lo6+R4WBEDuMoFYGsj+SvQfj1iRgqgzeEhwVCR+drAX3Ckllcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7OikehkwgUJ0I2bCXrLPn7TlUTcNK2Stu2F8n4gz2jAiB3yp2G6MSolYFjsICO/IBmzWjAUQOnl5pLOwM8rFnGww=="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.1":{"name":"es6-template","version":"1.0.1","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^1.2.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["easy","ecma","ecmascript","engine","es6","regex","simple","small","string","template","tpl"],"gitHead":"bcd98f5cd9dcb21eaba2a191694d56ce7b024739","bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@1.0.1","_shasum":"29f948678c66bf2f9fef2c6db34d0d68f360b883","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"29f948678c66bf2f9fef2c6db34d0d68f360b883","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-1.0.1.tgz","integrity":"sha512-r8nbd8gNaG/32aXVPg0ouCUTbTseC8b2LooVn0q7vNo91GyLCsRI6QBuLnPs28uRsWJxbsbudfso6bCEqvdJsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO9eD6Loyne9K/MQH659r786f/64buzd/VS8AOER6IwAIgLNWhvbr32l1OCgMrOjzE9LQCGiQ4Pd0XPlqyduB/awU="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.2":{"name":"es6-template","version":"1.0.2","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^1.2.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["easy","ecma","ecmascript","engine","es6","regex","simple","small","string","template","tpl"],"gitHead":"298b90f43876179b21b0471271bf8527644622de","bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@1.0.2","_shasum":"14e8f9a09ad4eec5208c378cbb50314a0f3807dd","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"14e8f9a09ad4eec5208c378cbb50314a0f3807dd","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-1.0.2.tgz","integrity":"sha512-D5hCepp/xRkCXtIK+KbKHJH/6YdZWZ6OzB6j9fdz7Jm7+5AYcpqWithKINDgjJMa7TpSV4dSWgCXcixq8ODjAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDES8o6s3pwThYz9ZMOdUIdilpRzlUsMT7OdJHYV5e7+wIgX1hN2NyHwpV5mGtIf5XEd5n5gqL7Bu129CWc/RowIvg="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.3":{"name":"es6-template","version":"1.0.3","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^1.2.1","lazy-cache":"^0.2.3","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js","utils.js"],"keywords":["easy","ecma","ecmascript","engine","es6","regex","simple","small","string","template","tpl"],"gitHead":"9957956e932fdbe163e4bf9d63b563335b84000a","bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@1.0.3","_shasum":"924d7668aef74d1fbab8e7250e341ad57c978819","_from":".","_npmVersion":"3.3.2","_nodeVersion":"4.0.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"924d7668aef74d1fbab8e7250e341ad57c978819","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-1.0.3.tgz","integrity":"sha512-iL5ioqabC8mXXI9Ssjn67+qxddig2Sbd0TJHY0wk2+xfqwidYCXb5YHcwHtrh3BGdhcsB/OL0SxUqkEEkGv+5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3s9N6efcV2IW6DFaQtv4RwttrTDvVYnq/Mtw9oj95mAiEAngJgdIWBV/Qs0CeEivNMbMK0bRjdEDijr/dn+dAIJkQ="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.4":{"name":"es6-template","version":"1.0.4","description":"Easy and small template engine for the browser and nodejs.","repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"prebuild":"npm install && npm test && mkdirp dist","build":"npm run bundle && npm run standalone","bundle":"browserify -dr ./index.js:es6-template -o dist/es6-template.js","postbundle":"uglifyjs dist/es6-template.js -m -c -o dist/es6-template.min.js","standalone":"browserify -ds es6-template index.js -o dist/es6-template.standalone.js","poststandalone":"uglifyjs dist/es6-template.standalone.js -m -c -o dist/es6-template.standalone.min.js","test":"standard && node test.js"},"dependencies":{"es6-template-regex":"^0.1.1","extend-shallow":"^2.0.1","get-value":"^2.0.2","lazy-cache":"^1.0.3","mkdirp":"^0.5.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0","browserify":"^13.0.0","uglify-js":"^2.6.1"},"files":["index.js","utils.js"],"keywords":["easy","ecma","ecmascript","engine","es6","regex","simple","small","string","template","tpl"],"standard":{"ignore":["dist/**"]},"gitHead":"e204e47a1c50c641fde4a15b53250776e26f5b5b","bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"homepage":"https://github.com/tunnckocore/es6-template#readme","_id":"es6-template@1.0.4","_shasum":"56af42b57a31f5175d3f567d44b1efc12d2f2636","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"56af42b57a31f5175d3f567d44b1efc12d2f2636","tarball":"https://registry.npmjs.org/es6-template/-/es6-template-1.0.4.tgz","integrity":"sha512-91S2Zl/xHps/4gYIOFTl6xIEZgkCYSmyH6Nmw3uZUD89EEjj7YjK4m8C9RbjSHwCw94ENLOJJQjxZ6eEM4JanQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErfD3HKVnMziNOXk2PnJjfqG8Ffx9IgTrvkN7bJPhdCAiAf+fkxPIHnnPzTMjLXZc9Eb0NMfG2/+Sr1zBhSeFZMKg=="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}}},"readme":"# [es6-template][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n> Easy and small template engine for the browser and nodejs.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n\n## Install\n```\nnpm i es6-template --save\n```\n\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nvar es6template = require('es6-template')\n```\n\n### [es6template](./index#L31)\n> Acts like `.render` by default. Renders given `str` with `locals`.\n\n- `str` **{String}** template to populate with `locals`\n- `locals` **{Object}** locals object\n- `return` **{String}** rendered string\n\n**Example**\n\n```js\nes6template('foo ${bar} baz ${quux}', {bar: 'BAR'}, {quux: 'QUUX'})\n//=> 'foo BAR baz QUUX'\n```\n\n### [.render](./index#L58)\n> Renders given `str` with `locals`. You can give unlimited number of object \narguments after the first - they will be merged and passed as single locals object.\n\n- `str` **{String}** template to populate with `locals`\n- `locals` **{Object}** locals object\n- `return` **{String}** rendered string\n\n**Example**\n\n```js\nes6template.render('Hello ${place} and ${user.name}!', {\n  place: 'world',\n  user: {\n    name: 'Charlike'\n  }\n})\n//=> 'Hello world and Charlike!'\n```\n\n### [.compile](./index#L79)\n> Compiles given string and returns function which accepts\n unlimited number of `locals` object arguments.\n\n- `str` **{String}** template to populate\n- `return` **{Function}** which accepts `locals` objects\n\n**Example**\n\n```js\nvar fn = es6template.compile('Hello ${place} and ${user.name}!')\nfn({place: 'world', user: {name: 'Charlike'}})\n//=> 'Hello world and Charlike!'\n```\n\n\n## Related\n- [es6-template-regex](https://github.com/jonschlinkert/es6-template-regex): Regular expression for matching es6 template delimiters in a string.\n- [es6-template-strings](https://github.com/medikoo/es6-template-strings): Compile and resolve template strings notation as specified in ES6\n- [gulp-es6-template](https://github.com/tunnckoCore/gulp-es6-template): Gulp plugin for `es6-template` - easy and small template engine.\n- [gulp-es6-template-strings](https://github.com/tunnckoCore/gulp-es6-template-strings): Gulp plugin for `es6-template-strings` package.\n- [j140](https://github.com/tunnckoCore/j140): Javascript template engine in just 140 bytes, for browser and node - by Jed Schmidt\n- [jstransformer-es6-template](https://github.com/tunnckoCore/jstransformer-es6-template): es6-template support for JSTransformers\n- [jstransformer-es6-template-strings](https://github.com/jstransformers/jstransformer-es6-template-strings): es6-template-strings support for JSTransformers\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/es6-template/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckocore.tk][author-www-img]][author-www-url] [![keybase tunnckocore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n\n[npmjs-url]: https://www.npmjs.com/package/es6-template\n[npmjs-img]: https://img.shields.io/npm/v/es6-template.svg?label=es6-template\n\n[license-url]: https://github.com/tunnckoCore/es6-template/blob/master/LICENSE.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/es6-template\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/es6-template.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/es6-template\n[travis-img]: https://img.shields.io/travis/tunnckoCore/es6-template.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/es6-template\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/es6-template.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/es6-template\n[david-img]: https://img.shields.io/david/tunnckoCore/es6-template.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg","maintainers":[{"email":"super.ludiq@gmail.com","name":"vanchoy"},{"email":"mameto2011@gmail.com","name":"tunnckocore"}],"time":{"modified":"2022-06-17T17:06:28.505Z","created":"2015-09-20T11:50:28.596Z","0.0.0":"2015-09-20T11:50:28.596Z","0.1.0":"2015-09-20T11:56:45.590Z","1.0.0":"2015-09-22T17:41:53.377Z","1.0.1":"2015-09-30T22:45:06.165Z","1.0.2":"2015-10-15T00:12:52.290Z","1.0.3":"2015-10-15T00:33:43.312Z","1.0.4":"2016-01-13T17:58:22.617Z"},"homepage":"https://github.com/tunnckocore/es6-template#readme","keywords":["easy","ecma","ecmascript","engine","es6","regex","simple","small","string","template","tpl"],"repository":{"type":"git","url":"git+https://github.com/tunnckocore/es6-template.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"bugs":{"url":"https://github.com/tunnckocore/es6-template/issues"},"license":"MIT","readmeFilename":"README.md"}