{"id":20481149,"url":"https://github.com/sapphdevelopment/sappquotes","last_synced_at":"2026-05-09T07:34:47.035Z","repository":{"id":175961276,"uuid":"654773810","full_name":"SapphDevelopment/sappQuotes","owner":"SapphDevelopment","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-11T00:59:47.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T05:01:42.999Z","etag":null,"topics":["quote","quote-generator","quotes"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/sappquotes","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SapphDevelopment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-16T23:32:45.000Z","updated_at":"2023-06-17T15:27:56.000Z","dependencies_parsed_at":"2023-08-23T14:25:12.330Z","dependency_job_id":null,"html_url":"https://github.com/SapphDevelopment/sappQuotes","commit_stats":null,"previous_names":["sapphiredevs/sappquotes","sapphdevelopment/sappquotes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2FsappQuotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2FsappQuotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2FsappQuotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2FsappQuotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SapphDevelopment","download_url":"https://codeload.github.com/SapphDevelopment/sappQuotes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058079,"owners_count":20065062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["quote","quote-generator","quotes"],"created_at":"2024-11-15T16:06:58.624Z","updated_at":"2026-05-09T07:34:46.984Z","avatar_url":"https://github.com/SapphDevelopment.png","language":"TypeScript","funding_links":["https://ko-fi.com/J3J1FVEH0"],"categories":[],"sub_categories":[],"readme":"# sappQuotes\n\n\u003cp align=\"left\"\u003e\u003ca href=\"https://nodei.co/npm/sappquotes\"\u003e\u003cimg src=\"https://nodei.co/npm/sappquotes.png?mini=true\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"left\"\u003e\u003ca href=\"https://ko-fi.com/J3J1FVEH0\"\u003e\u003cimg src=\"https://ko-fi.com/img/githubbutton_sm.svg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cdiv align=\"left\"\u003e\n    \u003ca href=\"https://discord.gg/75QR5duadJ\"\u003e \u003cimg src=\"https://img.shields.io/discord/1129153558898540684?color=5865F2\u0026logo=discord\u0026logoColor=white\" alt=\"npm version\"/\u003e \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/sappquotes\"\u003e \u003cimg src=\"https://img.shields.io/npm/v/sappquotes.svg?maxAge=3600\" alt=\"npm version\"/\u003e \u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/sappquotes\"\u003e \u003cimg src=\"https://img.shields.io/npm/dt/sappquotes.svg?maxAge=3600\" alt=\"npm downloads\"/\u003e \u003c/a\u003e\n\u003c/div\u003e\n\nsappQuotes is a very lightweight npm package that provides a collection of quotes with various categories. It allows you to retrieve random quotes or quotes from specific categories. All quotes were manually curated, ensuring no duplicates, no API reliance, and no downtime.\n\n## Installation\n\nYou can install sappQuotes using npm:\n\n```shh\nnpm install sappquotes@latest\n```\n\n## Usage\n\nHere's an example how to use sappQuotes:\n\n```typescript\n/* JavaScript */ const { getRandomQuote, countQuotes, fetchQuotes, fetchCategories } = require(\"sappquotes\")\n/* TypeScrippt */ import { getRandomQuote, countQuotes, fetchQuotes, fetchCategories } from \"sappquotes\"\n\n// Fetch and display a random quote\nawait getRandomQuote().then((quote) =\u003e {\n  console.log(`\"${quote.quote}\" - ${quote.author}`);\n});\n\n  // Fetch and display a random quote from a specific category\nconst category = \"motivation\";\nawait getRandomQuote(category).then((quote) =\u003e {\n  console.log(`\"${quote.quote}\" - ${quote.author} (${quote.category})`);\n});\n\n  // Fetch and display available categories\nawait fetchCategories().then((categories) =\u003e {\n  console.log(\"Available categories:\", categories);\n});\n\n// Fetch and display available quotes\nawait fetchQuotes().then((quotes) =\u003e {\n  console.log(\"Available quotes:\", quotes);\n});\n```\n\n## API\n\nThe sappQuotes package provides the following functions:\n\n### `getRandomQuote`\n\nRetrieve a random quote from any category.\n\n### `getRandomQuote(category: string)`\n\nRetrieve a random quote from a specific category.\n\n- `category`: The category from which to retrieve the quote.\n\n### `fetchQuotes`\n\nRetrieve all available quotes.\n\n### `fetchCategories`\n\nRetrieve all available categories.\n\n## License\n\nMIT License\n\nCopyright (c) 2023 Sapphire Developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapphdevelopment%2Fsappquotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapphdevelopment%2Fsappquotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapphdevelopment%2Fsappquotes/lists"}