https://github.com/mguida22/degrees-to-directions
Convert degrees to directions
https://github.com/mguida22/degrees-to-directions
Last synced: about 2 months ago
JSON representation
Convert degrees to directions
- Host: GitHub
- URL: https://github.com/mguida22/degrees-to-directions
- Owner: mguida22
- License: mit
- Created: 2015-10-13T01:25:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-15T19:42:31.000Z (over 9 years ago)
- Last Synced: 2025-04-23T06:51:20.607Z (about 2 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Degrees to Directions 
Convert degrees into directions. Useful for windspeed, etc.
## Usage
```sh
$ npm install degrees-to-direction
``````js
var d2d = require('degrees-to-direction');d2d(0); // "N"
d2d(10); // "N"
d2d(45); // "ENE"
d2d(180); // "S"
```## Running Tests
You may need to install mocha globally to run the tests.
```
$ npm install
$ npm test
```### License
MIT