Ninja Pirate Marksman

    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.')  // PB
    states.sanitizeStateName('(PunJAB) ')  // Punjab
    states.getStateNameByStateCode('...MH.=') // Maharashtra
    states.getStateCodeByStateName('!D#!%e123132lhi') // DL (Delhi)

    Inspired from

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

    Install

    npm i india-state-codes

    DownloadsWeekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.25 kB

    Total Files

    7

    Last publish

    Collaborators

    • gurrrung