{"id":20835694,"url":"https://github.com/helmasaur/birthgem","last_synced_at":"2026-04-18T04:02:04.268Z","repository":{"id":52406536,"uuid":"226913971","full_name":"helmasaur/birthgem","owner":"helmasaur","description":"Determine the birthstone from the given month or day.","archived":false,"fork":false,"pushed_at":"2023-05-09T22:48:27.000Z","size":92,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-03T11:58:48.586Z","etag":null,"topics":["api","birth","birthday","birthstone","calendar","gem","gemstone","nodejs","nodejs-api","stone","zodiac"],"latest_commit_sha":null,"homepage":"","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/helmasaur.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,"zenodo":null}},"created_at":"2019-12-09T16:15:42.000Z","updated_at":"2023-02-24T14:34:45.000Z","dependencies_parsed_at":"2025-08-02T04:46:40.373Z","dependency_job_id":null,"html_url":"https://github.com/helmasaur/birthgem","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/helmasaur/birthgem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmasaur%2Fbirthgem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmasaur%2Fbirthgem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmasaur%2Fbirthgem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmasaur%2Fbirthgem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helmasaur","download_url":"https://codeload.github.com/helmasaur/birthgem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helmasaur%2Fbirthgem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","birth","birthday","birthstone","calendar","gem","gemstone","nodejs","nodejs-api","stone","zodiac"],"created_at":"2024-11-18T00:27:04.707Z","updated_at":"2026-04-18T04:02:04.242Z","avatar_url":"https://github.com/helmasaur.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![](https://img.shields.io/npm/v/birthgem.svg)](https://www.npmjs.com/package/birthgem)\n\n# Birthgem\n\nDetermines the birthstones from the given month, day of the week or zodiac sign.\n\n*This is based on ekimng's [package](https://github.com/ekimng/birthstone).*\n\n- The stone names and zodiac signs names can be in different languages.\n- All results are returned into an array except for error codes which are negative integers.\n\n*Functions dedicated to zodiac signs are deprecated. Use the package [zodiac-signs](https://www.npmjs.com/package/zodiac-signs) instead.*\n\n## Installation\n\nYou have to add this module to your npm modules folder.\n\n```bash\n$ npm install birthgem\n```\n\n## Example\n\n### Importing the module\n\n```js\nconst birthgem = require('birthgem')('en');\n// Require with a language (format xx-YY sets (format xx)\nconst birthgem = require('birthgem')('en-US')\n// Require without an argument sets 'en'\nconst birthgem = require('birthgem')();\n```\n\n### Displaying a month birthstone\n\n```js\n// Returns the birthstone of the present month\nconsole.log(birthgem.month());\n// Returns the birthstone of January (values: [1;12])\nconsole.log(birthgem.month(1));\n// Overload the default language (format xx-YY sets (format xx)\nconsole.log(birthgem.month(1, 'fr'));\n```\n\n### Displaying a day of the week birthstone\n\n```js\n// Returns the birthstone of the present day\nconsole.log(birthgem.day());\n// Returns the birthstone of Monday (values: [1;7])\nconsole.log(birthgem.day(1));\n// Overloads the default language (format xx-YY sets (format xx)\nconsole.log(birthgem.day(1, 'fr'));\n```\n\n### Displaying a zodiac sign birthstone\n\n*Those functions have been removed. Use the package [zodiac-signs](https://www.npmjs.com/package/zodiac-signs) instead.*\n\n## Error management\n\nAn integer is returned if the given parameter is wrong:\n\n| Type   | Values                         | Error code |\n|--------|--------------------------------|------------|\n| Day    | [1;7]                          | -1         |\n| Month  | [1;12]                         | -2         |\n\n## Translation\n\nYou are free to participate to the translation in any other language.\n\n### Avaible languages\n\n- English\n- French\n- German\n- Italian\n- Portuguese\n- Spanish\n\n## Thanks\n\nThanks to ekimng for the original package: [birthstone](https://github.com/ekimng/birthstone).\n\n## License\n\n- My source code is published under [MIT License](https://github.com/Helmasaur/birthgem/blob/master/LICENSE).\n- The original package is published under [MIT License](https://github.com/ekimng/birthstone/blob/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmasaur%2Fbirthgem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelmasaur%2Fbirthgem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmasaur%2Fbirthgem/lists"}