8000 GitHub - satyarohith/cardinal: A Deno module to get compass direction (16 directions) from degree.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A Deno module to get compass direction (16 directions) from degree.

License

Notifications You must be signed in to change notification settings

satyarohith/cardinal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardinal

ci

16-point compass rose

Get direction for the provided degree based on a 16-point compass rose.

import { getDirection } from "https://deno.land/x/cardinal/mod.ts";
console.log(getDirection(135)); // SE
console.log(getDirection(135, { long: true })); // southeast

MIT License.

About

A Deno module to get compass direction (16 directions) from degree.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0