Author: Chris Rabe
asciimoticon-web: asciimoticon-web.herokuapp.com
npm install asciimoticon-core --save
- asciimoticon-core v-1.2 demo video
- asciimoticon-core v-1.1 demo video
- asciimoticon-core v-1.0 demo video
Please visit our documentation page to see the full list of functionalities.
NOTE: This snippet only covers the basic functionality of asciimoticon-core
.
const core = require('asciimoticon-core');
// Convert text to special ASCII texts
const text = 'test';
const witchText = core.text.toWitchtext(text);
const fancyText = core.text.toFancytext(text);
const flipText = core.text.toFliptext(text);
const fliptextTable = core.text.toFliptextTable(text);
console.log(witchText); //†Σ$†
console.log(fancyText); //тєѕт
console.log(flipText); //ʇsǝʇ
console.log(fliptextTable); //(ノ ゜Д゜)ノ ︵ ʇsǝʇ
// Convert numbers into ASCII emoticons
const number = 5;
const dice = core.number.dice(number); // 1 - 6 sides
const dollar = core.number.dollarbill(number);
const loading = core.number.loading(number);
console.log(dice); // ⚄
console.log(dollar); // [̲̅$̲̅(̲5̲̅̅)̲̅$̲̅]
console.log(loading); // █▒▒▒▒▒▒▒▒▒
// Get predefined faces with associated words on them
const faces = core.faces;
for (const faceName in faces) {
const face = faces[faceName];
console.log(`${face.ascii} : ${face.words}`); // TOO MANY TO DEFINE
}