
Australian States
List of Australian state information.
Usage
.long([{capitalize: true|false}])
Returns an array of state names. An options object can also be passed which
accepts the capitalize
property.
Example:
var states = require('australian-states')
states.long()
states.long({capitalize: true})
.short([{capitalize: true|false}])
Returns an array of state abbreviations. An options object can also be passed
which accepts the capitalize
property.
Example:
var states = require('australian-states')
states.short()
states.short({capitalize: true})
.capitals([{capitalize: true|false}])
Returns an array of state capital city names. An options object can also be
passed which accepts the capitalize
property.
Example:
var states = require('australian-states')
states.capitals()
states.capitals({capitalize: true})
.all()
Returns an array of state objects containing name
, abbreviation
, capital
and type
.
Example:
var states = require('australian-states')
states.all()