arikushi
v2.0.0
Published
Generate Japanese word mapping from Latin characters
Downloads
8
Maintainers
Readme
arikushi
Generate Japanese word mapping from Latin characters
Installation
npm install --save arikushi
Usage
// Import the library
import arikushi from "arikushi";
// Pass any number of strings to `convert`
let result = arikushi.convert("Hello", "World");
console.log(result); // outputs: `rikutatamo meimoshitate`
// Pass any number of numbers to `random`
result = arikushi.random(3);
console.log(result);
// possible outputs:
// `kinana`
// `zuruke`
// `fumota`
result = arikushi.random(2, 5, 1);
console.log(result);
// possible outputs:
// `domo kinotokato ji`
// `rutu zimeizukimei mei`
// `furi zirinmedoki tu`
result = arikushi.random(4, 2);
console.log(result);
// possible outputs:
// `ketomichi meiri`
// `kimerido luf