self-mastery-quotes
v1.0.0
Published
A curated collection of self-mastery quotes with a zero-dependency TypeScript API
Downloads
21
Maintainers
Readme
self-mastery-quotes
A curated collection of self-mastery quotes with a zero-dependency TypeScript API.
Install
npm install self-mastery-quotesUsage
import { quote } from "self-mastery-quotes";
const q = quote();
console.log(`"${q.text}" — ${q.author}`);
// "Knowing others is intelligence; knowing yourself is true wisdom." — Lao TzuAPI
quote(): Quote
Returns a random quote from the collection.
Quote
interface Quote {
text: string;
author: string;
}Contributing
Want to add a quote? See CONTRIBUTING.md — it only requires editing one JSON file.
