degrees-to-compass

1.0.2 • Public • Published

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"

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i degrees-to-compass

      Weekly Downloads

      0

      Version

      1.0.2

      License

      ISC

      Unpacked Size

      1.36 kB

      Total Files

      3

      Last publish

      Collaborators

      • airking0507