satyarohith / cardinal

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:TypeScript 100.0%