smiley-master
v1.0.3
Published
Display smiley on the command line
Maintainers
Readme
smiley-master
A lightweight Node.js utility for logging emoticon expressions to the console. Perfect for quick feedback in scripts, CLI tools, or just adding a bit of fun to your terminal sessions.
Features
- Log a variety of emoticons: happy, sad, angry, surprised, wink, love, confused, crying
- Simple API for importing individual expressions
- Command-line interface for quick one-off usage
Install globally from npm:
npm install -g smiley-masternode index.js surprised # prints :-O
node index.js crying # prints T_TImport the functions you need in your Node.js scripts:
import {
happy,
sad,
angry,
surprised,
wink,
love,
confused,
crying
} from './index.js';
happy(); // prints :-)
sad(); // prints :-(
angry(); // prints >:-(
surprised(); // prints :-O
wink(); // prints ;-)
love(); // prints <3
confused(); // prints :-/
crying(); // prints T_TCLI
Run directly from the command line by passing an emotion name:
node index.js happy # prints :-)
node index.js surprised # prints :-OIf installed globally (npm link), you can run:
smiley happyAPI Reference
| Function | Description | Console Output |
| ----------- | ----------------------- | -------------- |
| happy() | Logs a happy face | :-) |
| sad() | Logs a sad face | :-( |
| angry() | Logs an angry face | >:-( |
| surprised()| Logs a surprised face | :-O |
| wink() | Logs a wink face | ;-) |
| love() | Logs a heart | <3 |
| confused()| Logs a confused face | :-/ |
| crying() | Logs a crying face | T_T |
