0.1.2 • Published 8 years ago

convertable-string v0.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

Convertable String

Convert string from the one alphabet to another

Install

run npm i convertable-string

Basic example

const ConvertableString = require('convertable-string');

let ascii = new ConvertableString();
let en = new ConvertableString(97, 26);

en.string = 'hello';

console.log(ascii.from(en));  // -> '#Bf&'

ascii.string = 'hello';

console.log(ascii.string === en.string);  // true, 'hello' equals 'hello'
console.log(ascii.position === en.position);  // false, 6006614195 > 3752127

Tests and more examples

run npm test