@luckyhappy/mood-spark
v0.1.1
Published
Generate a daily mood spark card in your terminal.
Readme
mood-spark
A tiny and playful npm package that generates a daily mood card in terminal.
What it does
- CLI command: print a "mood + focus + micro challenge" card
- Deterministic by date or by custom seed
- Reusable API for your own apps
Install
Quick run without install:
npx @luckyhappy/mood-sparkInstall into current project:
npm i @luckyhappy/mood-sparkRun after local install:
npm exec mood-spark -- --seed sprint-42For global CLI usage (then use mood-spark directly):
npm i -g @luckyhappy/mood-sparkCLI usage
mood-spark
mood-spark --seed sprint-42
mood-spark --json
mood-spark --no-ansiAPI usage
import { drawMoodCard, formatCard } from "@luckyhappy/mood-spark";
const card = drawMoodCard({ seed: "release-day" });
console.log(card);
console.log(formatCard(card, { ansi: false }));Local development
npm install
npm test
npm run start
npm run check:packMaintainer note
If you fork this project and republish under your own scope, replace package
name in package.json with @<your-npm-username>/mood-spark.
License
MIT
