{"_id":"tagged-template-literals","_rev":"5-2389c89288c61e3d93870cd0157480f1","name":"tagged-template-literals","description":"Tagged ES6 template helper","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"tagged-template-literals","version":"1.0.0","description":"Tagged ES6 template helper","main":"lib/index.js","scripts":{"test":"apm test","compile":"ucompiler go"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/tagged-template-literals.git"},"keywords":["trim","string","text"],"author":{"name":"steelbrain"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/tagged-template-literals/issues"},"homepage":"https://github.com/steelbrain/tagged-template-literals#readme","dependencies":{},"devDependencies":{"babel-preset-steelbrain":"^2.0.1","escape-html":"^1.0.3","ucompiler":"^3.1.8","ucompiler-plugin-babel":"^3.1.1"},"gitHead":"a947fe22370cbb5f5c4fbbbc7d778b5e4bfaa866","_id":"tagged-template-literals@1.0.0","_shasum":"2855060999b7d5920e31d6167727c3586581e5d8","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"steelbrain","email":"de.steelbrain@gmail.com"},"dist":{"shasum":"2855060999b7d5920e31d6167727c3586581e5d8","tarball":"https://registry.npmjs.org/tagged-template-literals/-/tagged-template-literals-1.0.0.tgz","integrity":"sha512-74ka7dZcGjfQeXzxAuq6nJ/p0NoYbeuFOw5fxHZm/q9wxKe7UJqI67QQRCskx5mCCcH4qYFjpfahO1CIoECbPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAK6Uxglja32BouQJEa2BArIAwcO+31g3U64VAlnCNftAiEA36v29k8P+KZYAyZ2th/JesaiSKNo9X9y0RDrimaUQZ4="}]},"maintainers":[{"name":"steelbrain","email":"de.steelbrain@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/tagged-template-literals-1.0.0.tgz_1458299772401_0.9525137913879007"}},"1.0.1":{"name":"tagged-template-literals","version":"1.0.1","description":"Tagged ES6 template helper","main":"lib/index.js","scripts":{"test":"apm test","compile":"ucompiler go"},"repository":{"type":"git","url":"git+https://github.com/steelbrain/tagged-template-literals.git"},"keywords":["trim","string","text"],"author":{"name":"steelbrain"},"license":"MIT","bugs":{"url":"https://github.com/steelbrain/tagged-template-literals/issues"},"homepage":"https://github.com/steelbrain/tagged-template-literals#readme","dependencies":{},"devDependencies":{"babel-preset-steelbrain":"^2.0.1","escape-html":"^1.0.3","ucompiler":"^3.1.8","ucompiler-plugin-babel":"^3.1.1"},"gitHead":"462d0b0b8499083105131b8c8122f3455578a6d2","_id":"tagged-template-literals@1.0.1","_shasum":"73b292ffb1803c995713a40dad9ee8118b7e26a4","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"steelbrain","email":"de.steelbrain@gmail.com"},"dist":{"shasum":"73b292ffb1803c995713a40dad9ee8118b7e26a4","tarball":"https://registry.npmjs.org/tagged-template-literals/-/tagged-template-literals-1.0.1.tgz","integrity":"sha512-3SSwr9VsKO1xL8ilKofHROzg/0lxZ7CJzRA16f5uLZ2Fl9uIDwPSLBUZFy+H6uR64Jtt/mN1eyyyHwhKV+rOWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVbC8jcI5p8Bjke8tJfb//YEeKNugUUA5P++M/mdZmpAiBJrhhMWdQLchrSy+WgrmSo5AaHxSnh144eUwI0vL+LYQ=="}]},"maintainers":[{"name":"steelbrain","email":"de.steelbrain@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/tagged-template-literals-1.0.1.tgz_1458301081484_0.9051818803418428"}}},"readme":"Tagged Template Literals\n=====================\nTagged Template Literals is a base library to make your packages simpler. See the usage for example usage.\n\n## Installation\n\n```sh\nnpm install --save tagged-template-literals\n```\n\n## API\n\n```js\nfunction taggedTemplateLiterals(\n  values: Array<string>,\n  strings: Array<string>,\n  callback: ?((param: string) => string)\n): string\n\nmodule.exports = taggedTemplateLiterals\n```\n\n## Examples\n```js\nimport tag from 'tagged-template-literals'\nimport escape from 'escape-html'\nimport trim from 'cool-trim'\n\nfunction escapeHTML(strings, ...values) {\n  if (strings && strings.raw) {\n    throw new Error('Only template strings are supported')\n  }\n  return tag(strings, values, escape)\n}\n\nconst dangerous = '<script></script>'\nconst escaped = trim(escapeHTML`\n  Hello there <div>\n    ${dangerous}\n  </div>\n`)\nconsole.log(escaped === `\nHello there <div>\n  &lt;script&gt;&lt;/script&gt;\n</div>\n`) // true\n```\n\n## License\n\nThis project is licensed under the terms of MIT License, see the LICENSE file for more info\n","maintainers":[{"email":"i@steelbrain.me","name":"steelbrain"}],"time":{"modified":"2022-06-27T03:38:07.520Z","created":"2016-03-18T11:16:14.568Z","1.0.0":"2016-03-18T11:16:14.568Z","1.0.1":"2016-03-18T11:38:03.787Z"},"homepage":"https://github.com/steelbrain/tagged-template-literals#readme","keywords":["trim","string","text"],"repository":{"type":"git","url":"git+https://github.com/steelbrain/tagged-template-literals.git"},"author":{"name":"steelbrain"},"bugs":{"url":"https://github.com/steelbrain/tagged-template-literals/issues"},"license":"MIT","readmeFilename":"README.md"}