0.1.2 • Published 6 years ago

babel-plugin-gist v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

babel-plugin-gist

Build Status tested with jest styled with prettier All Contributors

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