Convert character code getters into plain integers
npm install babel-plugin-precompile-charcodes> Convert character code getters into plain integers.
With npm do:
```
npm install babel-plugin-precompile-charcodes --save-dev
Convert str.charCodeAt(0) to a plain integer, useful for parsers/tokenizers.
`js`
const at = '@'.charCodeAt(0);
`js`
const at = 64;
In your Babel configuration:
`json``
{
"plugins": ["precompile-charcodes"]
}
Thanks goes to these wonderful people (emoji key):
|
Ben Briggs
💻 📖 👀 ⚠️ |
| :---: |
This project follows the [all-contributors] specification. Contributions of
any kind welcome!
MIT © Ben Briggs
[all-contributors]: https://github.com/kentcdodds/all-contributors
[ci]: https://travis-ci.org/ben-eb/babel-plugin-precompile-charcodes
[deps]: https://gemnasium.com/ben-eb/babel-plugin-precompile-charcodes
[npm]: http://badge.fury.io/js/babel-plugin-precompile-charcodes