New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

all-your-base

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

all-your-base

convert from/to binary, hexadecimal, decimal values

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-54.55%
Maintainers
1
Weekly downloads
 
Created
Source

##convert from one base to another supported bases:

base/radixnamemodule's abbr.
base 2binarybin
base 8octaloct
base 10decimaldec
base 16hexadecimalhex

common utility functions & tables stored in ./src/x.js and ./src/tables.js

###how to use: ####choosing an operation: [old]To[New] where [old] is the first three letters of the base you are converting from and [New] is the first three letters of the base to convert to

####parameter data types to convert from decimal, pass in a non-negative integer to convert from any base except for decimal, pass in the value as a string


###todo: ####type-checking & error handling

function converting from decimal should accept integers all other functions should accept parameters as strings

####planned bases to support

base/radixnamemodule's abbr.
base 12duodecimalb12
base 24tetravigesimalb24
base 26hexavigesimalb26
base 32duotrigesimalb32
base 36hexatrigesimalb36
base 60sexagesimalb60
base 62duosexigesimalb62
base 64tetrasexagesimalb64

###good links: how to understand hexadecimal binary to hexadecimal binary to decimal decimal to hexadecimal decimal to binary hexadecimal to binary or decimal

Keywords

FAQs

Package last updated on 18 Oct 2014

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