https://github.com/satyarohith/cardinal
A Deno module to get compass direction (16 directions) from degree.
https://github.com/satyarohith/cardinal
cardinal compass deno module wind-direction
Last synced: 22 days ago
JSON representation
A Deno module to get compass direction (16 directions) from degree.
- Host: GitHub
- URL: https://github.com/satyarohith/cardinal
- Owner: satyarohith
- License: mit
- Created: 2020-12-14T14:43:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-21T09:23:17.000Z (about 5 years ago)
- Last Synced: 2025-03-10T09:18:33.233Z (over 1 year ago)
- Topics: cardinal, compass, deno, module, wind-direction
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Cardinal

Get direction for the provided degree based on a 16-point compass rose.
```ts
import { getDirection } from "https://deno.land/x/cardinal/mod.ts";
console.log(getDirection(135)); // SE
console.log(getDirection(135, { long: true })); // southeast
```
[MIT](LICENSE) License.