A Typescript/JavaScript library with Software quotes from developers or people in the Tech industry, coming from Open Source to big tech speakers, and writers.
npm install open-quotes
or
yarn add open-quotes
Using CommonJS
// CommonJS
const quotes = require('open-quotes');
console.log(quotes.getAllQuotes());
console.log(quotes.getQuotesByCategory('Programming'));
Using ES6 Modules or TypeScript:
// ES6 Modules or TypeScript
import quotes from 'open-quotes';
console.log(quotes.getAllQuotes());
console.log(quotes.getQuotesByCategory('Programming'));
Example output:
[
{
"quote": "Time is what we want most, but what we use worst.",
"author": {
"name": "William Penn",
"link": "https://en.wikipedia.org/wiki/William_Penn",
"profileImage": "https://en.wikipedia.org/wiki/File:WilliamPenn.jpg"
},
"categories": ["Productivity"]
},
{
"quote": "Everything in software architecture is a trade-off. First law of Software Architecture.",
"author": {
"name": "Fundamentals of Software Architecture",
"link": "https://www.oreilly.com/library/view/fundamentals-of-software/9781492043447/",
"profileImage": "https://learning.oreilly.com/library/cover/9781492043447/250w/"
},
"categories": ["Software Architecture"]
},
{
"quote": "A person who never made a mistake never tried anything new.",
"author": {
"name": "Albert Einstein",
"link": "https://en.wikipedia.org/wiki/Albert_Einstein",
"profileImage": "https://en.wikipedia.org/wiki/File:Einstein_1921_by_F_Schmutzer_-_restoration.jpg"
},
"categories": ["Life"]
}
]
Returns all quotes from the library.
Returns all quotes from the library filtered by category.
If you want to contribute to this project or add your quotes, please read the CONTRIBUTING.md file.