{"id":21490381,"url":"https://github.com/sapphdevelopment/myfacts","last_synced_at":"2026-02-06T18:08:27.206Z","repository":{"id":153376613,"uuid":"629151174","full_name":"SapphDevelopment/myfacts","owner":"SapphDevelopment","description":"A simple npm package to get a random fact","archived":false,"fork":false,"pushed_at":"2023-06-16T14:37:00.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T03:59:08.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/myfacts","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-04-17T18:19:25.000Z","updated_at":"2025-08-06T07:43:39.000Z","dependencies_parsed_at":"2023-08-23T14:25:12.548Z","dependency_job_id":null,"html_url":"https://github.com/SapphDevelopment/myfacts","commit_stats":null,"previous_names":["saturnsdevelopment/myfacts","sapphdevelopment/myfacts","sapphiredevs/myfacts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SapphDevelopment/myfacts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2Fmyfacts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2Fmyfacts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2Fmyfacts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2Fmyfacts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SapphDevelopment","download_url":"https://codeload.github.com/SapphDevelopment/myfacts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SapphDevelopment%2Fmyfacts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29171203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T16:33:35.550Z","status":"ssl_error","status_checked_at":"2026-02-06T16:33:30.716Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-23T14:35:35.752Z","updated_at":"2026-02-06T18:08:27.170Z","avatar_url":"https://github.com/SapphDevelopment.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\t\u003cbr /\u003e\n\t\u003c/p\u003e\n\t\u003cbr /\u003e\n\t\u003cp\u003e\n\t\t\u003ca href=\"https://discord.gg/TKz7BMwEap\"\u003e\u003cimg src=\"https://img.shields.io/discord/909261119103832084?color=5865F2\u0026logo=discord\u0026logoColor=white\" alt=\"Discord server\" /\u003e\u003c/a\u003e\n\t\t\u003ca href=\"https://www.npmjs.com/package/myfacts\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/myfacts.svg?maxAge=3600\" alt=\"npm version\" /\u003e\u003c/a\u003e\n\t\t\u003ca href=\"https://www.npmjs.com/package/myfacts\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/myfacts.svg?maxAge=3600\" alt=\"npm downloads\" /\u003e\u003c/a\u003e\n\t\u003c/p\u003e\n\u003c/div\u003e\n\n# myFacts NPM Package\n\nThis is an NPM package that provides random facts in various categories. The package includes the following categories:\n\n## Categories\n- Animals (Cats, Dogs, Penguins; subcategories can be called separately)\n- Discord\n- Google\n- OpenAI\n- Research (Biology, Geography, Science, Space; subcategories can be called separately)\n- Software\n- Urlcut\n- Youtube\n\n## Installation\n\nTo install the package, run the following command:\n\n```ssh\nnpm install myfacts\n```\n\n## Usage\n\nTo use the package, first import the `getFact` function from the package:\n\n```js\n// TypeScript: import getFact from \"myfacts\";\nconst getFact = require(\"myfacts\");\n```\n\nThen, call the `getFact` function with a category parameter to get a random fact from that category:\n\n```js\nconst fact = getFact(\"Google\");\nconsole.log(fact);\n```\n\nThis will log a random fact from the Google category to the console. You can replace \"Google\" with \"Software\" or \"Discord\" to get a random fact from those categories instead. More categories listed under the category list\n\nYou can also optionally pass an index parameter to `getFact` to get a specific fact from the array:\n\n```js\nconst fact = getFact(\"Google\", 2);\nconsole.log(fact);\n```\n\nThis will log the third fact (index 2) from the Google category to the console.\n\n## Contributing\n\nIf you'd like to contribute to the package, feel free to submit a pull request with your changes.\n\n## License\n\nMIT License\n\nCopyright (c) 2023 Ducko\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapphdevelopment%2Fmyfacts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapphdevelopment%2Fmyfacts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapphdevelopment%2Fmyfacts/lists"}