JSPM

base10

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q39389F
  • License MIT

Base10 encoder and decoder

Package Exports

  • base10
  • base10/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base10) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Base10 Encoder/Decoder

This algorithm works like Base64 but uses numbers only as the output encoded string.

Not sure why you would want it, tho.

Please note that due to the limited character set, the output strings are going too long.

Compatible PHP version here

Examples

const base10 = require('base10')

const original = "Hello, world!";
console.log('Original string: ' + original)

const encoded = base10.encode(original);
console.log('Encoded string: ' + encoded);

const decoded = base10.decode(encoded);
console.log('Decoded string: ' + decoded);