0.1.0 • Published 7 years ago

babel-plugin-twitter v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

babel-plugin-twitter

Build Status tested with jest styled with prettier All Contributors

import from tweeeeeeet!!!!!!!!!!!!!

Inspire by https://gist.github.com/rauchg/5b032c2c2166e4e36713

Install

$ yarn add --dev babel-plugin-twitter

Usage

.babelrc

{
  "plugins": ["babel-plugin-twitter"]
}

Examples

import leftPad from 'twitter:712799807073419264'

console.log(leftPad(1, 5)) // '00001'
console.log(leftPad(1234, 5)) // '01234'
console.log(leftPad(12345, 5)) // '12345'

More Example?

open examples/index.js and coding! And yarn run example :)

Contributors

Thanks goes to these wonderful people (emoji key):

akameco💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco