Socket
Socket
Sign inDemoInstall

bigint-base-converter

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bigint-base-converter

Convert big integers from any base to any base


Version published
Weekly downloads
32K
increased by17.77%
Maintainers
1
Install size
9.62 kB
Created
Weekly downloads
 

Readme

Source

bigint-base-converter

Node package for converting integers between bases. Integers do not have to fit in a javascript native number.

To install:

npm install bigint-base-converter

To import:

var convertBase = require('bigint-base-converter');

To use:

convertBase(value, fromBase, toBase)

fromBase and toBase may be integers or alphabet strings. If integer, the output/intput will (be/expected to be) an array of numbers in that base. If string, the output/input will (be/expected to be) encoded using the characters in the string as the digits (with the base as the length of the string parameter).

Keywords

FAQs

Last updated on 08 Nov 2021

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