insensitive

1.0.1 • Public • Published

insensitive

Make sure anything you are working with becomes lowercase alphanumeric characters:

import insensitive from 'insensitive';
 
const obj = insensitive();
console.log(obj.hello);  // undefined
obj.heL_Lo = 'world';
console.log(obj.hello);  // 'world'
obj.hello = 'bye';
console.log(obj.hello);  // 'bye'
 
for (let key in obj) {
  console.log(key);  // 'hello'
}
Object.keys(obj); // ['hello']

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i insensitive

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.75 kB

Total Files

8

Last publish

Collaborators

  • franciscop