@goldentree1/direction
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

A simple utility I made to help with directions and their associated abbreviations.

new Direction(42).symbol //'NE'
new Direction("ne").direction //45
new Direction(0).rotate(-45).symbol //'NW'
new Direction("invalid").direction //null
new Direction("invalid").symbol //null

Package Sidebar

Install

npm i @goldentree1/direction

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

36.8 kB

Total Files

9

Last publish

Collaborators

  • goldentree1