Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.4 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.4 KB

Asciilib

Ascii art / kaomoji keyword library

Install

npm install --save asciilib

Usage

const asciilib = require("asciilib")

asciilib.lib
{ upside_down_lenny:
   { name: 'Upside Down Lenny',
     entry: '( ͜。 ͡ʖ ͜。)',
     keywords: [ 'upside', 'down', 'lenny' ],
     category: 'UNASSIGNED' },
  race_car:
   { name: 'Race Car',
     entry: '\\ō͡≡o˞̶',
     keywords: [ 'race', 'car' ],
     category: 'UNASSIGNED' },
  ...
}

asciilib.ordered
[ 'afraid', 'airplane', 'almost_cared', ... ]

Contributing and adding new kaomoji or ascii art

Submit a pull request :). The file to modify is: lib.json. Each entry has the following shape:

{
  name: 'Upside Down Lenny', // Some string that describes the entry
  entry: '( ͜。 ͡ʖ ͜。)', // The actual characters
  keywords: [ 'face', 'upsidedown' ], // Any
  category: 'UNASSIGNED' // whatever you want
}

Related Projects

Inspired by

If you want something similar for emoji check this out ☝

A warning about bundle size

If you're worried about bundle size you should know that importing this lib will include all of lib.json, which currently adds over 200kb (uncompressed).