A library to help you search, validate, and convert between India state names and state codes.
npm install india-state-codes --save
var states = require('india-state-codes');
states.sanitizeStateCode('PB.') // PB
states.sanitizeStateName('(PunJAB) ') // Punjab
states.getStateNameByStateCode('...MH.=') // Maharashtra
states.getStateCodeByStateName('!D#!%e123132lhi') // DL (Delhi)