bordering-states
A module that returns the states that border each other.
Last updated 8 months ago by tgbowler .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install bordering-states 
SYNC missed versions from official npm registry.

What is bordering-states

bordering-states is a module that allows you to search for all states that border the requested state

Install

npm install bordering-states

Usage

Basic

const borderingStates = require('bordering-states');
borderingStates('AL');

Include original state

const borderingStates = require('bordering-states');
borderingStates('AL', {inclusive: true});

Returns

['FL', 'GA', 'MS', 'TN']

Tests

To run the tests:

npm test

Current Tags

  • 1.0.0                                ...           latest (8 months ago)

5 Versions

  • 1.0.0                                ...           8 months ago
  • 0.0.4                                ...           9 months ago
  • 0.0.3                                ...           9 months ago
  • 0.0.2                                ...           9 months ago
  • 0.0.1                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 4
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |