DigitArray
The DigitArray library is designed to encode and decode numbers in arbirtary bases.
Example
var decimalValue = 10 1 3 3 7; var binaryValue = decimalValue; var hexValue = decimalValue; var encodedDecimalValue = decimalValue;// "1337" var encodedBinaryValue = binaryValue;// "10100111001" var encodedHexValue = hexValue;// "539" DigitArray;// 1337 DigitArray;// 1337 DigitArray;// 1337
Dev setup
Requirements:
- npm
- gulp
Install dependencies:
npm install -g gulpnpm install
Build library:
Modify the source files in the src
directory, then run gulp to build DigitArray.js
and DigitArray.min.js
in the root directory.
gulp