{"_id":"@59naga/babel-plugin-transform-string-raw","_rev":"3-3c97ae77f73d170a24b74aee2f7a3286","name":"@59naga/babel-plugin-transform-string-raw","description":"replace `String.raw` with an ponyfill function","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@59naga/babel-plugin-transform-string-raw","description":"replace `String.raw` with an ponyfill function","version":"0.0.0","main":"lib","files":["lib"],"dependencies":{"babel-template":"^6.7.0"},"scripts":{"start":"abby compile, watch:*","watch:raw":"abby mocha --log --watch","watch:src":"babel src --out-dir lib --watch","watch:test":"babel test --out-dir spec --watch","compile":"babel -V && babel src --out-dir lib && babel test --out-dir spec","test":"abby compile, mocha","mocha":"mocha 'spec/**/*.js'","cover":"abby cover:* --parse serial","cover:test":"nyc --reporter=lcov --reporter=text abby mocha","cover:report":"npm-if TRAVIS \"codeclimate-test-reporter < coverage/lcov.info\"","lint":"eslint src test","build":"abby \"babel -V && babel src --out-dir lib --source-maps\" --env"},"nyc":{"exclude":["spec"]},"abigail":{"plugins":{"log":false,"parse":{"raw":true},"watch":{"enable":false,"value":["lib/**/*.js","spec/**/*.js"]}}},"devDependencies":{"@59naga/babel-plugin-transform-array-from":"0.0.0","abigail":"^1.6.1","babel-cli":"^6.6.5","babel-core":"^6.7.6","babel-eslint":"^6.0.2","babel-plugin-add-module-exports":"^0.1.2","babel-plugin-espower":"^2.1.2","babel-plugin-transform-object-assign":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-1":"^6.5.0","babel-register":"^6.7.2","chokidar":"^1.4.3","codeclimate-test-reporter":"^0.3.1","eslint":"^2.6.0","eslint-config-airbnb":"^7.0.0","mocha":"^2.4.5","npm-statement":"^0.0.0","nyc":"^6.1.1","power-assert":"^1.3.1"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/59naga/babel-plugin-transform-string-raw.git"},"keywords":["babel-plugin","String.raw","polyfill","ponyfill"],"author":{"name":"59naga","email":"i59naga@icloud.com","url":"http://berabou.me/"},"license":"MIT","bugs":{"url":"https://github.com/59naga/babel-plugin-transform-string-raw/issues"},"homepage":"https://github.com/59naga/babel-plugin-transform-string-raw#readme","gitHead":"553f37c579b76b922c2d65a16b6a143e7da1293d","_id":"@59naga/babel-plugin-transform-string-raw@0.0.0","_shasum":"c0bda5f9f3f6122095e0af7e5086490a78917ad7","_from":".","_npmVersion":"2.15.0","_nodeVersion":"0.12.13","_npmUser":{"name":"59naga","email":"i59naga@icloud.com"},"dist":{"shasum":"c0bda5f9f3f6122095e0af7e5086490a78917ad7","tarball":"https://registry.npmjs.org/@59naga/babel-plugin-transform-string-raw/-/babel-plugin-transform-string-raw-0.0.0.tgz","integrity":"sha512-XxL+r+FWxiEAdhrl4UwD+klQLqzCtFk2x5gs1oNm0lglO6tEOHmxjcwSlzyveqeaDOqb9yUgHlM/2r8+m81IBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCctdiK7LAF+ZxKBVUlQjrxX+5HDZtnPuZj1T2gGwuJPwIhANANLUeRAnD6ZRc1iQDsHfA/2NjN1TiFKpas/A27uWEr"}]},"maintainers":[{"name":"59naga","email":"i59naga@icloud.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-string-raw-0.0.0.tgz_1460562945026_0.14220176567323506"}}},"readme":"babel-plugin-transform-string-raw\n---\n\n<p align=\"right\">\n  <a href=\"https://npmjs.org/package/@59naga/babel-plugin-transform-string-raw\">\n    <img src=\"https://img.shields.io/npm/v/@59naga/babel-plugin-transform-string-raw.svg?style=flat-square\">\n  </a>\n  <a href=\"https://travis-ci.org/59naga/babel-plugin-transform-string-raw\">\n    <img src=\"http://img.shields.io/travis/59naga/babel-plugin-transform-string-raw.svg?style=flat-square\">\n  </a>\n  <a href=\"https://codeclimate.com/github/59naga/babel-plugin-transform-string-raw/coverage\">\n    <img src=\"https://img.shields.io/codeclimate/github/59naga/babel-plugin-transform-string-raw.svg?style=flat-square\">\n  </a>\n  <a href=\"https://codeclimate.com/github/59naga/babel-plugin-transform-string-raw\">\n    <img src=\"https://img.shields.io/codeclimate/coverage/github/59naga/babel-plugin-transform-string-raw.svg?style=flat-square\">\n  </a>\n  <a href=\"https://gemnasium.com/59naga/babel-plugin-transform-string-raw\">\n    <img src=\"https://img.shields.io/gemnasium/59naga/babel-plugin-transform-string-raw.svg?style=flat-square\">\n  </a>\n</p>\n\nInstallation\n---\n```bash\nnpm install @59naga/babel-plugin-transform-string-raw --save\n```\n\nreplace `String.raw` with an [ponyfill function](https://github.com/59naga/string-raw).\n\nRequirement\n---\n> https://github.com/59naga/babel-plugin-transform-array-from\n\nInstallation\n---\n```bash\nnpm install @59naga/babel-plugin-transform-string-raw --save\n```\n\nExample\n---\n\n**In**\n\n```js\nconst arg1 = 'foo';\nconst arg2 = 'bar';\nString.raw`hoge${arg1}fuga${arg2}piyo`;\n```\n\n**Out**\n\n```js\nvar _stringRaw = String.raw || function(){...};\n_stringRaw`hoge${arg1}fuga${arg2}piyo`;\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"@59naga/babel-plugin-transform-string-raw\"]\n}\n```\n\n### Via CLI\n\n```bash\n$ babel --plugins @59naga/babel-plugin-transform-string-raw script.js\n```\n\n### Via Node API\n\n```js\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"@59naga/babel-plugin-transform-string-raw\"]\n});\n```\n\nDevelopment\n---\nRequirement global\n* NodeJS v0.12.13\n* Npm v3.7.1\n\n```bash\ngit clone https://github.com/59naga/babel-plugin-transform-string-raw\ncd babel-plugin-transform-string-raw\nnpm install\n\nnpm test\n```\n\nLicense\n---\n[MIT](http://59naga.mit-license.org/)\n","maintainers":[{"name":"59naga","email":"i59naga@icloud.com"}],"time":{"modified":"2022-06-12T14:11:27.348Z","created":"2016-04-13T15:55:47.886Z","0.0.0":"2016-04-13T15:55:47.886Z"},"homepage":"https://github.com/59naga/babel-plugin-transform-string-raw#readme","keywords":["babel-plugin","String.raw","polyfill","ponyfill"],"repository":{"type":"git","url":"git+https://github.com/59naga/babel-plugin-transform-string-raw.git"},"author":{"name":"59naga","email":"i59naga@icloud.com","url":"http://berabou.me/"},"bugs":{"url":"https://github.com/59naga/babel-plugin-transform-string-raw/issues"},"license":"MIT","readmeFilename":"README.md"}