datasets-us-states-capitals1.0.0 • Public • Published
US State Capitals
US state capitals.
$ npm install datasets-us-states-capitals
For use in the browser, use browserify.
var capitals = ;
US state capitals listed in alphabetical order according to state name.
var capitals = ;var len = capitalslengthN = 10idxi;// Select random state capitals from the list...for i = 0; i < N; i++idx = Math - 1;console;
To run the example code from the top-level application directory,
$ node ./examples/index.js
$ make test
All new feature development should have corresponding unit tests to validate correct functionality.
This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:
$ make test-cov
Istanbul creates a
./reports/coverage directory. To access an HTML version of the report,
$ make view-cov
Copyright © 2015. The Compute.io Authors.