babel-plugin-gist

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-gist

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • rhio.kim