Skip to content

🇮🇳 A library to help you search, validate, and convert between India state names and state codes.

License

Notifications You must be signed in to change notification settings

rahgurung/india-state-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

india-state-codes

version

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)

Inspired from

https://github.com/mdzhang/us-state-codes

About

🇮🇳 A library to help you search, validate, and convert between India state names and state codes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •