babel-plugin-gist
v0.1.2
Published
transform import from gist
Downloads
4
Readme
babel-plugin-gist
import from gist!!!!!!!!!!!!!
Inspire by https://github.com/akameco/babel-plugin-twitter
Install
$ yarn add --dev babel-plugin-gist
Usage
.babelrc
{
"plugins": ["babel-plugin-gist"]
}
Examples
import sum from 'gist:rhiokim/badfbe21fb86dbbe031cac85bdc2043a#file-sum-js'
import minus from 'gist:rhiokim/badfbe21fb86dbbe031cac85bdc2043a#file-sum-js'
console.log(sum(1, 5)) // 6
console.log(minus(5, 1)) // 4
More Example?
open examples/index.js
and coding! And yarn run example
:)
Contributors
Thanks goes to these wonderful people (emoji key):
| akameco💻 📖 ⚠️ 🚇 | Rhio Kim💻 📖 💡 ⚠️ | | :---: | :---: |
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco