Socket
Book a DemoInstallSign in
Socket

bigint-base-converter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigint-base-converter

Convert big integers from any base to any base

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
18K
-7.37%
Maintainers
1
Weekly downloads
 
Created
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

bigint

FAQs

Package last updated on 08 Nov 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.