convertable-string

Convert string from the one alphabet to another

Usage no npm install needed!

<script type="module">
  import convertableString from 'https://cdn.skypack.dev/convertable-string';
</script>

README

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