{"_id":"es6-template-strings","_rev":"153221","name":"es6-template-strings","description":"Compile and resolve template strings notation as specified in ES6","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"medikoo","email":""}],"time":{"modified":"2021-06-03T11:34:07.000Z","created":"2013-10-10T13:48:31.538Z","2.0.1":"2016-08-12T14:13:31.054Z","2.0.0":"2015-09-03T10:30:55.029Z","1.0.0":"2015-06-23T15:12:47.649Z","0.1.0":"2014-04-28T11:59:58.577Z","0.0.0":"2013-10-10T13:48:31.538Z"},"users":{"parkerproject":true,"wendellm":true,"thinhair":true,"kodekracker":true},"author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"repository":{"type":"git","url":"git://github.com/medikoo/es6-template-strings.git"},"versions":{"2.0.1":{"name":"es6-template-strings","version":"2.0.1","description":"Compile and resolve template strings notation as specified in ES6","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["es6","template","string","literal","literals","format","i18n","quasiliterals","multiline","localization","escape"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-template-strings.git"},"dependencies":{"es5-ext":"^0.10.12","esniff":"^1.1"},"devDependencies":{"tad":"^0.2.4","xlint":"^0.2.2","xlint-jslint-medikoo":"^0.1.4"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"4af301ead906083f91af3f7b84066385a8933b12","bugs":{"url":"https://github.com/medikoo/es6-template-strings/issues"},"homepage":"https://github.com/medikoo/es6-template-strings#readme","_id":"es6-template-strings@2.0.1","_shasum":"b166c6a62562f478bb7775f6ca96103a599b4b2c","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"b166c6a62562f478bb7775f6ca96103a599b4b2c","size":5034,"noattachment":false,"key":"/es6-template-strings/-/es6-template-strings-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-template-strings/download/es6-template-strings-2.0.1.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/es6-template-strings-2.0.1.tgz_1471011209573_0.8194355664309114"},"directories":{},"publish_time":1471011211054,"_cnpm_publish_time":1471011211054,"_hasShrinkwrap":false},"2.0.0":{"name":"es6-template-strings","version":"2.0.0","description":"Compile and resolve template strings notation as specified in ES6","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["es6","template","string","literal","literals","format","i18n","quasiliterals","multiline","localization","escape"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-template-strings.git"},"dependencies":{"es5-ext":"^0.10.7","esniff":"1"},"devDependencies":{"tad":"^0.2.3","xlint":"^0.2.2","xlint-jslint-medikoo":"^0.1.4"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"8f2eaec9993a9af2b0fe9022f0c71c4a48321330","bugs":{"url":"https://github.com/medikoo/es6-template-strings/issues"},"homepage":"https://github.com/medikoo/es6-template-strings#readme","_id":"es6-template-strings@2.0.0","_shasum":"35c80365efbbc1510fe7ca9f475967d546c169fc","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"35c80365efbbc1510fe7ca9f475967d546c169fc","size":4932,"noattachment":false,"key":"/es6-template-strings/-/es6-template-strings-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-template-strings/download/es6-template-strings-2.0.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1441276255029,"_cnpm_publish_time":1441276255029,"_hasShrinkwrap":false},"1.0.0":{"name":"es6-template-strings","version":"1.0.0","description":"Compile and resolve template strings notation as specified in ES6","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["es6","template","string","format","i18n","quasiliterals","multiline","localization","escape"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-template-strings.git"},"dependencies":{"es5-ext":"^0.10.7"},"devDependencies":{"tad":"^0.2.3","xlint":"^0.2.2","xlint-jslint-medikoo":"^0.1.3"},"scripts":{"lint":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream","lint-console":"node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch","test":"node ./node_modules/tad/bin/tad"},"license":"MIT","gitHead":"b0e8c573a67d3923a1dc5ad80f817119f9709821","bugs":{"url":"https://github.com/medikoo/es6-template-strings/issues"},"homepage":"https://github.com/medikoo/es6-template-strings#readme","_id":"es6-template-strings@1.0.0","_shasum":"33acd4b5fc82488a576ea525777edf3e6ecdbbdf","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"dist":{"shasum":"33acd4b5fc82488a576ea525777edf3e6ecdbbdf","size":4603,"noattachment":false,"key":"/es6-template-strings/-/es6-template-strings-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-template-strings/download/es6-template-strings-1.0.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1435072367649,"_cnpm_publish_time":1435072367649,"_hasShrinkwrap":false},"0.1.0":{"name":"es6-template-strings","version":"0.1.0","description":"Compile and resolve template strings notation as specified in ES6","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"keywords":["es6","template","string","format","i18n","quasiliterals","multiline","localization","escape"],"repository":{"type":"git","url":"git://github.com/medikoo/es6-template-strings.git"},"dependencies":{"es5-ext":"~0.10.2"},"devDependencies":{"tad":"0.2.x"},"scripts":{"test":"node ./node_modules/tad/bin/tad"},"license":"MIT","bugs":{"url":"https://github.com/medikoo/es6-template-strings/issues"},"homepage":"https://github.com/medikoo/es6-template-strings","_id":"es6-template-strings@0.1.0","dist":{"shasum":"f9eb71deccd08071e56b73396db95768995cd348","size":4081,"noattachment":false,"key":"/es6-template-strings/-/es6-template-strings-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-template-strings/download/es6-template-strings-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1398686398577,"_cnpm_publish_time":1398686398577,"_hasShrinkwrap":false},"0.0.0":{"name":"es6-template-strings","version":"0.0.0","description":"Compile and resolve template strings notation as specified in ES6","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"http://www.medikoo.com/"},"repository":{"type":"git","url":"git://github.com/medikoo/es6-template-strings.git"},"scripts":{"test":"node ./node_modules/tad/bin/tad"},"keywords":["es6","template","string","format","i18n","quasiliterals","multiline","localization","escape"],"dependencies":{"d":"git://github.com/medikoo/d.git","es5-ext":"git://github.com/medikoo/es5-ext.git"},"devDependencies":{"tad":"~0.1.19"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/medikoo/es6-template-strings/issues"},"_id":"es6-template-strings@0.0.0","dist":{"shasum":"fa3431df6c995c1ab3936098b4df5bfaea38cbbd","size":3536,"noattachment":false,"key":"/es6-template-strings/-/es6-template-strings-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-template-strings/download/es6-template-strings-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"maintainers":[{"name":"medikoo","email":""}],"directories":{},"publish_time":1381412911538,"_cnpm_publish_time":1381412911538,"_hasShrinkwrap":false}},"readme":"# es6-template-strings\n## Compile and resolve template strings notation as specified in ES6\n\n### Usage\n\n```javascript\n\nvar template = require('es6-template-strings');\n\n// Hello WORLD!\nconsole.log(template('Hello ${place.toUpperCase()}!', { place: \"World\" }));\n\n// You can reuse same templates:\nvar compile = require('es6-template-strings/compile')\n  , resolveToString = require('es6-template-strings/resolve-to-string')\n\n  , compiled = compile('Welcome to ${siteName}, you are visitor number ${visitorNumber}!');\n\n// Welcome to MySite, you are visitor number 137!\nconsole.log(resolveToString(compiled, { siteName: \"MySite\", visitorNumber: 137 }));\n\n// Welcome to OtherSite, you are visitor number 777!\nconsole.log(resolveToString(compiled, { siteName: \"OtherSite\", visitorNumber: 777 }));\n\n// You may prepare custom tag functions\nvar resolve = require('es6-template-strings/resolve');\n\nvar customTag = function (literals/*, …substitutions*/) {\n\t// Process input and return result string\n};\n\n// Output template processed by customTag:\ncustomTag.apply(null, resolve(compiled, {/* context */}));\n```\n\n### Installation\n#### NPM\n\nIn your project path:\n\n\t$ npm install es6-template-strings\n\n##### Browser\n\nYou can easily bundle _es6-template-strings_ for browser with [modules-webmake](https://github.com/medikoo/modules-webmake)\n\n## Tests [![Build Status](https://travis-ci.org/medikoo/es6-template-strings.png)](https://travis-ci.org/medikoo/es6-template-strings)\n\n\t$ npm test\n","_attachments":{},"homepage":"https://github.com/medikoo/es6-template-strings#readme","bugs":{"url":"https://github.com/medikoo/es6-template-strings/issues"},"license":"MIT"}