0.2.1 • Published 4 years ago

unicode-braille-translator v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm.io forthebadge forthebadge npm.io Codacy Badge

Install

npm install unicode-braille-translator

Unicode Braille Translator

An easy, and simple npm package to use that converts text to braille and back. Robust and reliable with an ever increasing accuracy. Please note that this is api is still being developed and only supports Unified English Braille (UEB).

Docs

Example

const UBT = require("unicode-braille-translator");

const translator = new UBT.default();
const testString: string =
  'ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz `1234567890-= ~!@#$%^&*()_+ ,./ <>? /*-+. ;: \'" []{} \\|';

test(testString);
async function test(text: string) {
  // Convert noraml chars to braille chars
  const braille: string = await translator.toBraille(text);

  // Convert braille chars to normal chars
  const toNormal: string = await translator.toNormal(braille);

  console.log(text);
  console.log(braille);
  console.log(toNormal);
}
0.2.1

4 years ago

0.2.0

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago