1.0.10 • Published 6 months ago

basecraft v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Basecraft

basecraft is a lightweight, efficient, and intuitive library for converting numbers between different bases. Whether you're dealing with binary, decimal, hexadecimal, or custom bases, basecraft makes it easy.


Features

  • 🧮 Flexible Base Support: Convert numbers between any base (2-36).
  • Fast and Lightweight: Minimal dependencies for maximum performance.
  • 📦 Custom Base Alphabets: Define your own character sets for unique base systems.
  • 🛠️ Developer-Friendly API: Simple and clear methods for base conversions.

Installation

Install basecraft using npm:

npm install basecraft

or with yarn:

yarn add basecraft

##Usage Import the Package

const basecraft = require('basecraft');

// ES Module import
// import basecraft from 'basecraft';
const decimal = basecraft.convert('1010', 2, 10);
console.log(decimal); // Output: 10
const hex = basecraft.convert('255', 10, 16);
console.log(hex); // Output: ff
1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago