1.0.2 • Published 2 years ago
degrees-to-compass v1.0.2
What's the package about ?
Degree to Compass Direction Conversion Utility Function
Installation
Use the package manager npm to install foobar.
npm install degrees-to-compass
Usage
const converter = require('degrees-to-compass');
# returns 'DIRECTION ON COMPASS'
converter.convert('90') // "→ E"
# returns 'DIRECTION OF COMPASS'
converter.convert('250') // "← W"