1.0.1 • Published 4 years ago
india-state-codes v1.0.1
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.') // PB
states.sanitizeStateName('(PunJAB) ') // Punjab
states.getStateNameByStateCode('...MH.=') // Maharashtra
states.getStateCodeByStateName('!D#!%e123132lhi') // DL (Delhi)