{"id":21831333,"url":"https://github.com/nodef/extra-quotes","last_synced_at":"2026-05-18T17:32:50.391Z","repository":{"id":88821858,"uuid":"237731457","full_name":"nodef/extra-quotes","owner":"nodef","description":"Quotes to share insightful moments.","archived":false,"fork":false,"pushed_at":"2020-05-30T04:39:06.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T15:35:40.057Z","etag":null,"topics":["extra","insight","moment","quote","share"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/extra-quotes","language":"JavaScript","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/nodef.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-02T06:53:35.000Z","updated_at":"2020-06-24T07:51:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4878c58-39cd-4a64-b742-53e7dd6a006f","html_url":"https://github.com/nodef/extra-quotes","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"0ab091253f1c90a6426790ea976cd9500f379cf2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-quotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-quotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-quotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-quotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-quotes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244586183,"owners_count":20476899,"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":["extra","insight","moment","quote","share"],"created_at":"2024-11-27T19:09:43.134Z","updated_at":"2026-05-18T17:32:50.385Z","avatar_url":"https://github.com/nodef.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Quotes to share insightful moments. It has popular movie quotes [included].\nYou can also load them from [Wikiquote], or manually load them to corpora.\n\n\n## console\n\n```bash\nequotes \"try\"\n# Do, or do not. There is no 'try'.\n# :by  Star Wars: Episode V - The Empire Strikes Back (1980)\n#\n# There’s nothing you can’t do if you try.\n# :by  Dr Stone (2019)\n# ...\n\nequotes --load \"mahatma gandhi,arnold\" \"success\"\n# The late Middle Ages not merely has a successful middle class—it is in fact a middle-class period.\n# :by  Arnold Hauser (art historian)\n#\n# Just remember, you can't climb the ladder of success with your hands in your pockets.\n# :by  Arnold Schwarzenegger\n# ...\n\nequotes --load \"mahatma gandhi,arnold,\" \"stop try\"\n## NOTE: last empty load =\u003e load default quotes (movies)\n# Stop trying to control everything and just let go! LET GO!\n# :by  Fight Club (1999)\n#\n# When you stop trying to force the solution, it'll happen on its own.\n# :by  The Flash (2012)\n# ...\n\nequotes --load \"mahatma gandhi,arnold,\" \"peace\" --ref\n# Ideals are peaceful; history is violent.\n# :by  Fury (2014)\n#\n# I regard myself as a soldier, though a soldier of peace.\n# :by  Mahatma Gandhi\n# :ref Speech at Victoria Hall, Geneva (10 December 1931)\n# ...\n\nexport EQUOTES_LOAD=\"mahatma gandhi,arnold,\"\nequotes \"peace\" --random --limit 1\n## lists a random quote\n```\n\n### reference\n\n```bash\nequotes [options] [query]\n# query: text to match in quotes\n# Options:\n# --help:   show this help\n# --silent: hide error messages (0/1)\n# --by:   display \"by\" field (0/1)\n# --ref:  display \"ref\" field (0/1)\n# --load: load quotes from wikiquote ('query,query,...')\n# -a | --all: load all matching search results (0/1)\n# --from: display quotes from corpus ('name,name,...', null =\u003e all)\n# -f | --filter: filter quotes by ('js function')\n# -r | --random: randomly shuffle quotes (0/1)\n# -l | --limit:  limit number of quotes (integer, -1 =\u003e all)\n\n# Environment variables:\n$EQUOTES_SILENT # hide error messages (0)\n$EQUOTES_BY     # display \"by\" field (1)\n$EQUOTES_REF    # display \"ref\" field (0)\n$EQUOTES_LOAD   # load quotes from wikiquote ('')\n$EQUOTES_ALL    # load all matching search results (1)\n$EQUOTES_FROM   # choose from a subset of corpora (null)\n$EQUOTES_FILTER # filter quotes by ('q =\u003e q.text.length\u003c=160')\n$EQUOTES_RANDOM # randomly shuffle quotes (0)\n$EQUOTES_LIMIT  # limit number of quotes (-1)\n```\n\u003cbr\u003e\n\n\n## javascript\n\n```javascript\nconst quotes = require('extra-quotes');\n\nasync function main() {\nawait quotes.load();\n/* loads local movies quotes (corpus) */\n// true\n\nquotes('try');\n// [ { text: \"Do, or do not. There is no 'try'.\",\n//     by: 'Star Wars: Episode V - The Empire Strikes Back (1980)',\n//     ref: null },\n//   { text: 'There’s nothing you can’t do if you try.',\n//     by: 'Dr Stone (2019)',\n//     ref: null }, ... ]\n\nawait quotes.load('mahatma gandhi');\n/* loads Mahatma Gandhi quotes from Wikiquote */\n// true\n\nawait quotes.load('arnold');\n/* loads Arnold... quotes from Wikiquote */\n// true\n\nquotes('stop try');\n// [ { text: 'Stop trying to control everything and just let go! LET GO!',\n//     by: 'Fight Club (1999)',\n//     ref: null },\n//   { text:\n//      \"When you stop trying to force the solution, it'll happen on its own.\",\n//     by: 'The Flash (2012)',\n//     ref: null }, ... ]\n\nquotes('', null, {random: true, limit: 1});\n// -\u003e 1 random quote\n}\nmain();\n```\n\n### reference\n\n| Method              | Action\n|---------------------|-------\n| [quotes]            | Lists matching quotes.\n| [load]              | Loads quotes from Wikiquote, or local (movies).\n| [set]               | Manually sets quotes, with specified name.\n| [delete]            | Deletes loaded / manually set quotes (from corpora).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n[![Powered by Wikidata][powered_by_wikidata_img]][powered_by_wikidata_url]\n\n[![nodef](https://merferry.glitch.me/card/extra-quotes.svg)](https://nodef.github.io)\n\n\u003e Browserified, minified version of this package is [extra-quotes.min].\n\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-quotes)\n\n[quotes]: https://github.com/nodef/extra-quotes/wiki\n[load]: https://github.com/nodef/extra-quotes/wiki/load\n[set]: https://github.com/nodef/extra-quotes/wiki/set\n[delete]: https://github.com/nodef/extra-quotes/wiki/delete\n[Wikiquote]: https://en.wikiquote.org/wiki/Main_Page\n[included]: https://github.com/nodef/extra-quotes/blob/master/index.csv\n[powered_by_wikidata_img]: https://upload.wikimedia.org/wikipedia/commons/a/ae/Wikidata_Stamp_Rec_Dark.svg\n[powered_by_wikidata_url]: https://www.wikidata.org/wiki/Wikidata:Data_access#Best_practices_to_follow\n[extra-quotes.min]: https://www.npmjs.com/package/extra-quotes.min\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-quotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-quotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-quotes/lists"}