{"id":20879727,"url":"https://github.com/ryohidaka/compass-heading-js","last_synced_at":"2025-05-12T16:31:44.084Z","repository":{"id":216884979,"uuid":"742673419","full_name":"ryohidaka/compass-heading-js","owner":"ryohidaka","description":"Converts device orientation to compass heading.","archived":false,"fork":false,"pushed_at":"2024-12-01T22:21:54.000Z","size":1004,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T08:49:20.120Z","etag":null,"topics":["compass","geolocation","heading","orientation","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/compass-heading-js","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/ryohidaka.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":"2024-01-13T02:53:46.000Z","updated_at":"2024-12-01T22:21:57.000Z","dependencies_parsed_at":"2024-01-13T12:32:02.121Z","dependency_job_id":"e2196c5f-dd73-4cd7-89d2-3799b278c477","html_url":"https://github.com/ryohidaka/compass-heading-js","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.33333333333333337","last_synced_commit":"d57210d7c91ceb310ae0ec942606f4057d1faab0"},"previous_names":["ryohidaka/compass-heading-js"],"tags_count":1,"template":false,"template_full_name":"ryohidaka/npm-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fcompass-heading-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fcompass-heading-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fcompass-heading-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohidaka%2Fcompass-heading-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryohidaka","download_url":"https://codeload.github.com/ryohidaka/compass-heading-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253776874,"owners_count":21962582,"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":["compass","geolocation","heading","orientation","typescript"],"created_at":"2024-11-18T07:17:35.645Z","updated_at":"2025-05-12T16:31:43.778Z","avatar_url":"https://github.com/ryohidaka.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compass-heading-js\n\n[![npm version](https://badge.fury.io/js/compass-heading-js.svg)](https://badge.fury.io/js/compass-heading-js)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Overview\n\nConverts device orientation to compass heading.\n\n## Installation\n\nYou can install this library using npm:\n\n```shell\nnpm install compass-heading-js\n```\n\n## Props\n\n| key   | descriptiion                    |\n| ----- | ------------------------------- |\n| alpha | The device's compass heading    |\n| beta  | the device's tilt front-to-back |\n| gamma | the device's tilt left-to-right |\n\n## Usage\n\n```typescript\nimport { calculateCompassHeading } from \"compass-heading-js\";\n\nconst alpha = 45;\nconst beta = 30;\nconst gamma = 60;\n\nconst heading = calculateCompassHeading(alpha, beta, gamma);\nconsole.log(heading);\n// Output: 260.76847951640775\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryohidaka%2Fcompass-heading-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryohidaka%2Fcompass-heading-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryohidaka%2Fcompass-heading-js/lists"}