Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-precompile-charcodes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-precompile-charcodes

Convert character code getters into plain integers

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36
decreased by-29.41%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-precompile-charcodes Build Status NPM version Dependency Status

Convert character code getters into plain integers.

Install

With npm do:

npm install babel-plugin-precompile-charcodes --save-dev

Example

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

Keywords

FAQs

Package last updated on 03 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc