Package Exports
- babel-plugin-precompile-charcodes
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-precompile-charcodes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-plugin-precompile-charcodes

Convert character code getters into plain integers.
Install
With npm do:
npm install babel-plugin-precompile-charcodes --save-devExample
Convert str.charCodeAt(0) to a plain integer, useful for parsers/tokenizers.
Input
const at = '@'.charCodeAt(0);Output
const at = 64;Usage
In your Babel configuration:
{
"plugins": ["precompile-charcodes"]
}Contributors
Thanks goes to these wonderful people (emoji key):
Ben Briggs 💻 📖 👀 ⚠️ |
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © Ben Briggs