{"_id":"es6-templates","_rev":"325789","name":"es6-templates","description":"ES6 template strings compiled to ES5.","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"eventualbuddha","email":""}],"time":{"modified":"2021-06-07T02:44:37.000Z","created":"2014-04-15T15:14:23.525Z","0.2.3":"2016-09-02T16:16:14.707Z","0.2.2":"2014-12-31T19:35:14.296Z","0.2.1":"2014-12-31T17:41:57.286Z","0.2.0":"2014-10-27T22:48:33.223Z","0.1.0":"2014-09-23T21:39:05.903Z","0.0.3":"2014-05-02T22:27:57.719Z","0.0.2":"2014-04-15T16:16:02.010Z","0.0.1":"2014-04-15T15:14:23.525Z"},"users":{"jacopkane":true,"leiming":true},"author":{"name":"Square, Inc."},"repository":{"type":"git","url":"git+ssh://git@github.com/esnext/es6-templates.git"},"versions":{"0.2.3":{"name":"es6-templates","version":"0.2.3","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git+ssh://git@github.com/esnext/es6-templates.git"},"dependencies":{"recast":"~0.11.12","through":"~2.3.6"},"devDependencies":{"example-runner":"~0.2.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","gitHead":"cd61e516c494f47a6a87380848497cc35822607a","bugs":{"url":"https://github.com/esnext/es6-templates/issues"},"homepage":"https://github.com/esnext/es6-templates#readme","_id":"es6-templates@0.2.3","_shasum":"5cb9ac9fb1ded6eb1239342b81d792bbb4078ee4","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"5cb9ac9fb1ded6eb1239342b81d792bbb4078ee4","size":4341,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.2.3.tgz"},"maintainers":[{"name":"eventualbuddha","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/es6-templates-0.2.3.tgz_1472832970878_0.854157050838694"},"publish_time":1472832974707,"_cnpm_publish_time":1472832974707,"_hasShrinkwrap":false},"0.2.2":{"name":"es6-templates","version":"0.2.2","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:esnext/es6-templates.git"},"dependencies":{"recast":"~0.9.11","through":"~2.3.6"},"devDependencies":{"example-runner":"~0.2.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","gitHead":"1c2e1f7986a6569f5ac5814f19d3887dbd79fc55","bugs":{"url":"https://github.com/esnext/es6-templates/issues"},"homepage":"https://github.com/esnext/es6-templates","_id":"es6-templates@0.2.2","_shasum":"d13a02b052f74891b309a02043bc7b3d6a23f59f","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"dist":{"shasum":"d13a02b052f74891b309a02043bc7b3d6a23f59f","size":7981,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.2.2.tgz"},"publish_time":1420054514296,"_cnpm_publish_time":1420054514296,"_hasShrinkwrap":false},"0.2.1":{"name":"es6-templates","version":"0.2.1","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:esnext/es6-templates.git"},"dependencies":{"recast":"~0.8.0","through":"~2.3.6"},"devDependencies":{"example-runner":"~0.2.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","gitHead":"2fa782ac20ad6e4c56529048607e109d83a9f3d4","bugs":{"url":"https://github.com/esnext/es6-templates/issues"},"homepage":"https://github.com/esnext/es6-templates","_id":"es6-templates@0.2.1","_shasum":"a8fefdf87d1f8b2a0a4383bfabce4056182d7a63","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"dist":{"shasum":"a8fefdf87d1f8b2a0a4383bfabce4056182d7a63","size":7969,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.2.1.tgz"},"publish_time":1420047717286,"_cnpm_publish_time":1420047717286,"_hasShrinkwrap":false},"0.2.0":{"name":"es6-templates","version":"0.2.0","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:esnext/es6-templates.git"},"dependencies":{"recast":"~0.8.0","through":"~2.3.6"},"devDependencies":{"example-runner":"~0.2.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","gitHead":"547a021681eb690df4dcc077a3c80cc81b13054b","bugs":{"url":"https://github.com/esnext/es6-templates/issues"},"homepage":"https://github.com/esnext/es6-templates","_id":"es6-templates@0.2.0","_shasum":"ff9d5f0fdd8fbb1aca80df3a9fbb49d9601a6fd8","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"dist":{"shasum":"ff9d5f0fdd8fbb1aca80df3a9fbb49d9601a6fd8","size":7914,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.2.0.tgz"},"publish_time":1414450113223,"_cnpm_publish_time":1414450113223,"_hasShrinkwrap":false},"0.1.0":{"name":"es6-templates","version":"0.1.0","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:square/es6-templates.git"},"dependencies":{"ast-types":"^0.4.9","esprima-fb":"^6001.1001.0-dev-harmony-fb","recast":"~0.7.0","through":"~2.3.4"},"devDependencies":{"example-runner":"0.1.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","gitHead":"64691c7d416a62f689365564d26ab14f42a5f160","bugs":{"url":"https://github.com/square/es6-templates/issues"},"homepage":"https://github.com/square/es6-templates","_id":"es6-templates@0.1.0","_shasum":"c1a3f4e20990db3b545b887cbdcea08eb639589b","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"dist":{"shasum":"c1a3f4e20990db3b545b887cbdcea08eb639589b","size":4213,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.1.0.tgz"},"publish_time":1411508345903,"_cnpm_publish_time":1411508345903,"_hasShrinkwrap":false},"0.0.3":{"name":"es6-templates","version":"0.0.3","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:square/es6-templates.git"},"dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","recast":"~0.5.17","through":"~2.3.4","ast-types":"^0.3.27"},"devDependencies":{"example-runner":"0.1.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","bugs":{"url":"https://github.com/square/es6-templates/issues"},"homepage":"https://github.com/square/es6-templates","_id":"es6-templates@0.0.3","dist":{"shasum":"7ce0712ccb0e065c04bde165e5603a5846530f33","size":4217,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"publish_time":1399069677719,"_cnpm_publish_time":1399069677719,"_hasShrinkwrap":false},"0.0.2":{"name":"es6-templates","version":"0.0.2","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:square/es6-templates.git"},"dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","recast":"~0.5.12","through":"~2.3.4","ast-types":"^0.3.23"},"devDependencies":{"example-runner":"0.1.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","bugs":{"url":"https://github.com/square/es6-templates/issues"},"homepage":"https://github.com/square/es6-templates","_id":"es6-templates@0.0.2","dist":{"shasum":"539fede5eb00358589bf6b8ce4906091db5586e1","size":4129,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"publish_time":1397578562010,"_cnpm_publish_time":1397578562010,"_hasShrinkwrap":false},"0.0.1":{"name":"es6-templates","version":"0.0.1","description":"ES6 template strings compiled to ES5.","main":"lib/index.js","directories":{"test":"test"},"repository":{"type":"git","url":"git@github.com:square/es6-templates.git"},"dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","recast":"~0.5.12","through":"~2.3.4","ast-types":"git://github.com/eventualbuddha/ast-types.git#add-template-string-types"},"devDependencies":{"example-runner":"0.1.0"},"scripts":{"test":"node test/runner.js"},"author":{"name":"Square, Inc."},"license":"Apache 2","bugs":{"url":"https://github.com/square/es6-templates/issues"},"homepage":"https://github.com/square/es6-templates","_id":"es6-templates@0.0.1","dist":{"shasum":"50551cf400447ed22d911187819c200e18a08b69","size":4141,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-templates/download/es6-templates-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"maintainers":[{"name":"eventualbuddha","email":""}],"publish_time":1397574863525,"_cnpm_publish_time":1397574863525,"_hasShrinkwrap":false}},"readme":"# es6-templates\n\nCompiles JavaScript written using template strings to use ES5-compatible\nsyntax. For example, this:\n\n```js\nvar name = \"Nicholas\",\n    msg = `Hello, ${name}!`;\n\nconsole.log(msg);    // \"Hello, Nicholas!\"\n```\n\ncompiles to this:\n\n```js\nvar name = \"Nicholas\",\n    msg = \"Hello, \" + name + \"!\";\n\nconsole.log(msg);    // \"Hello, Nicholas!\"\n```\n\nFor more information about the proposed syntax, see the [TC39 wiki page on\ntemplate strings](http://tc39wiki.calculist.org/es6/template-strings/).\n\n## Install\n\n```\n$ npm install es6-templates\n```\n\n## Usage\n\n```js\n$ node\n> var compile = require('es6-templates').compile;\n> compile('`Hey, ${name}!`')\n{ 'code': ..., 'map': ... }\n```\n\nWithout interpolation:\n\n```js\n`Hey!`\n// becomes\n'\"Hey!\"'\n```\n\nWith interpolation:\n\n```js\n`Hey, ${name}!`\n// becomes\n\"Hey, \" + name + \"!\"\n```\n\nWith a tag expression:\n\n```js\nescape `<a href=\"${href}\">${text}</a>`\n// becomes\nescape(function() {\n  var strings = [\"\\u003Ca href=\\\"\", \"\\\"\\u003E\", \"\\u003C/a\\u003E\"];\n  strings.raw = [\"\\u003Ca href=\\\"\", \"\\\"\\u003E\", \"\\u003C/a\\u003E\"];\n  return strings;\n}(), href, text);\n```\n\nOr work directly with the AST:\n\n```js\n$ node\n> var transform = require('es6-templates').transform;\n> transform(inputAST)\n```\n\nTransforming ASTs is best done using [recast][recast] to preserve formatting\nwhere possible and for generating source maps.\n\n## Browserify\n\nBrowserify support is built in.\n\n```\n$ npm install es6-templates  # install local dependency\n$ browserify -t es6-templates $file\n```\n\n## Contributing\n\n[![Build Status](https://travis-ci.org/esnext/es6-templates.svg?branch=master)](https://travis-ci.org/esnext/es6-templates)\n\n### Setup\n\nFirst, install the development dependencies:\n\n```\n$ npm install\n```\n\nThen, try running the tests:\n\n```\n$ npm test\n```\n\n### Pull Requests\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nAny contributors to the master es6-templates repository must sign the\n[Individual Contributor License Agreement (CLA)][cla].  It's a short form that\ncovers our bases and makes sure you're eligible to contribute.\n\n[cla]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1\n\nWhen you have a change you'd like to see in the master repository, [send a pull\nrequest](https://github.com/esnext/es6-templates/pulls). Before we merge\nyour request, we'll make sure you're in the list of people who have signed a\nCLA.\n\n[recast]: https://github.com/benjamn/recast\n","_attachments":{},"homepage":"https://github.com/esnext/es6-templates#readme","bugs":{"url":"https://github.com/esnext/es6-templates/issues"},"license":"Apache 2"}