A simple azimuth to quadrant-bearing converter.
npm install quadrant-bearing
var quadrantBearing = require('quadrant-bearing'); quadrantBearing(300); //=> 'N60°W'
I've eschewed ES2015 syntax in case somebody wants to use it with an older browser or an older version of node without transpilation. Other than that, do whatever you want.