Socket
Socket
Sign inDemoInstall

@jsep-plugin/numbers

Package Overview
Dependencies
1
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jsep-plugin/numbers

Adds support for binary, hex, and octal number formats, including _


Version published
Weekly downloads
807
decreased by-22.1%
Maintainers
4
Install size
63.3 kB
Created
Weekly downloads
 

Changelog

Source

1.0.1 - 2021-08-24

Fixed support for CommonJS modules. This is only a republish.

Readme

Source

npm size

@jsep-plugin/numbers

A JSEP plugin for adding support for additional number formats, hexadecimal, binary and octal. It also adds support to ignore _ characters in numbers

jsep('0xA'); // hexadecimal (10)  
jsep('0b01001010'); // binary (74)
jsep('0644'); // octal (420)
jsep('0o644'); // octal (420)
jsep('115_200'); // decimal (115200)

Install

npm install @jsep-plugin/numbers
# or
yarn add @jsep-plugin/numbers

Usage

import jsep from 'jsep';
import jsepNumbers from '@jsep-plugin/numbers';
jsep.plugins.register(jsepNumbers);

Meta

LICENSE (MIT)

FAQs

Last updated on 18 Sep 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc