babel-plugin-twitter

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-twitter

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • akameco