npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kao.moji

v0.1.3

Published

Kaomoji for your thoughts?

Downloads

15

Readme

Kao.moji

Kao.moji is a node module that helps you pick kaomoji from 73 moods. You can read up on what kaomoji are here!. Throughout this README, you may read mentions of donger. A donger is a synonym for kaomoji and is used to refer to the generated kaomoji from this module.

License

MIT

Installation

In your shell (ie. bash):

$ npm install --save kao.moji

Usage

In your JavaScript:

const kao = require('kao.moji');

Quick Example

In yourscript.js:

const kao = require('kao.moji');
const donger = kao.moji.tableflip();

console.log(donger);

$ node yourscript.js:

>>> (ノಠ益ಠ)ノ彡┻━┻

How to call a kao.moji mood

Every mood (see below!) has an associated function that can be called on the exported moji object.

Picking a random donger from a mood:

If you wanted a random donger from the flower mood, you would use the moji object in your script like so:

const kao = require('kao.moji');

// your other code…
// la la la
// ok let's generate a flower!!

const donger = kao.moji.flower();
console.log(donger);

Output:

>>> (◕◞౪◟◕✿)

Getting every donger from a mood:

So maybe you don't want a random donger from a particular mood, but you'd like to see all your options. Ok! Can do! Simply call your mood function with an object, with a single key all, setting it to the boolean, true:

kao.moji.hide({all:true});

This will return an array of every donger associated with the mood ie: ['|д・)', '|ω・)', '|。・)'…]

Here's a more comprehensive example using the "cat" mood:

const kao = require('kao.moji`);

// your other code…
// la la la
// ok let's generate some cats!!

const dongers = kao.moji.cat({all:true});
console.log(dongers);

Output:

[ 'ὃ⍜ὅ',
  'ㅇㅅㅇ',
  'චᆽච',
  'ऴिाी',
  '(ꀄꀾꀄ)',
  'ฅ•ω•ฅ',
  '(ꅈꇅꅈ)',
  '(ꀂǒꀂ)',
  '(ꃪꄳꃪ)',
  '=ටᆼට=',
  'ʘ̥ꀾʘ̥',
  '=ộ⍛ộ=',
  '^ↀᴥↀ^',
  'โ๏∀๏ใ',
  '(ΦωΦ)',
  'ミ๏v๏彡',
  'ि०॰०ॢी',
  '(ฅ\'ω\'ฅ)',
  '(=ↀωↀ=)',
  '=^∇^*=',
  '(⁎˃ᆺ˂)',
  '(ㅇㅅㅇ❀)',
  'ฅ(≚ᄌ≚)',
  '(^・ェ・^)',
  '§ꊘ⃑٥ꊘ⃐§',
  '(=‘x‘=)',
  '(^-人-^)',
  '(=①ω①=)',
  '(=TェT=)',
  '(=xェx=)' ]

Available moods:

You can also generate this list by calling kao.moji.available()

  • angry
  • mad - Same as angry
  • bear
  • beg
  • blush
  • bow
  • bunny
  • rabbit - Same as bunny
  • bye
  • hi - Same as bye
  • hello - Same as hi
  • cat
  • confused
  • crying
  • cute
  • kawaii - Same as cute
  • dancing
  • depressed
  • determined
  • devil
  • disappointed
  • eating
  • drinking - Same as eating
  • evil
  • excited
  • fall
  • feminine
  • flower
  • funny
  • glasses
  • sunglasses - Same as glasses
  • grin
  • gross
  • happy
  • heart
  • helpless
  • hide
  • hit
  • hug
  • hurry
  • kiss
  • laughing
  • lennyface
  • love
  • magic
  • middlefinger
  • monkey
  • music
  • nervous
  • peacesign
  • poop
  • roger
  • roll
  • running
  • sad
  • saliva
  • salute
  • scared
  • shake
  • sheep
  • shocked
  • shrug
  • shy
  • embarrassed - Same as shy
  • sleep
  • smiling
  • smug
  • sparkles
  • stars
  • spin
  • sulk
  • surprised
  • sweat
  • tableflip
  • thatsit
  • thumbsup
  • tired
  • trymybest
  • unicode
  • vomit
  • weird
  • wink

Using a mood

See how to call a kao.moji mood!

Miscellania

Every mood name is also a property on the kao module. ie kao.sweat or kao.wink. This may or not be useful to you. I'm still deciding on if it's needed!

Thanks

Many thanks to Tsutomu Narushima and their website, jemoticons.com, for a comprehensive list of kaomoji. You can follow him on twitter here.