{"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":"me@brian-donovan.com"}],"dist":{"shasum":"ff9d5f0fdd8fbb1aca80df3a9fbb49d9601a6fd8","tarball":"http://registry-npm.ywwl.com/es6-templates/download/es6-templates-0.2.0.tgz","integrity":"sha512-xVKgCdBqbh7xW8TgWkZQIz8RuLElhFzUXwORUHmJ88usSu7mdk0XnYBTAZ+XpFuHXLcefOMDlmiErOKy1Ny4hQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6C7vRgmNP0dVD7eGmJQBF0qVh8WnzDNXLqWvNuqAs2wIgUDLdHgnRvBRrioYOQqpeFxR4C5wcmMgo0E72eKYEPpU="}],"size":7914,"noattachment":false,"key":"/es6-templates/-/es6-templates-0.2.0.tgz"},"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","publish_time":1414450113223,"_cnpm_publish_time":1414450113223,"dist-tags":{"latest":"0.2.3"}}