1.0.1 • Published 4 years ago

case-insensitive-map v1.0.1

Weekly downloads
57
License
MIT
Repository
github
Last release
4 years ago

case insensitive map

a map that doesn't care about the case of its keys. your keys have to be strings (if they aren't you should probably be using a regular map).

install

$ npm install case-insensitive-map

use

const CIM = require('case-insensitive-map')

const map = new CIM()

map.set('hello', 'world')
map.get('HELLo') // world

all the rest of the Map api works as well (this is just a wrapper)

license

MIT