india-state-codes
1.0.1 • Public • Published india-state-codes
A library to help you search, validate, and convert between India state names and state codes.
Installation
npm install india-state-codes --save
Usage
var states = require('india-state-codes');
states.sanitizeStateCode('PB.')
states.sanitizeStateName('(PunJAB) ')
states.getStateNameByStateCode('...MH.=')
states.getStateCodeByStateName('!D#!%e123132lhi')
Inspired from
https://github.com/mdzhang/us-state-codes
Package Sidebar
Install
Weekly Downloads