bordering-states is a module that allows you to search for all states that border the requested state
npm install bordering-states
const borderingStates = require('bordering-states');
borderingStates('AL');
const borderingStates = require('bordering-states');
borderingStates('AL', {inclusive: true});
['FL', 'GA', 'MS', 'TN']
To run the tests:
npm test