File: readme.md

package info (click to toggle)
node-lowercase-keys 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 104 kB
  • sloc: makefile: 2; sh: 2
file content (33 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# lowercase-keys [![Build Status](https://travis-ci.org/sindresorhus/lowercase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/lowercase-keys)

> Lowercase the keys of an object


## Install

```
$ npm install --save lowercase-keys
```


## Usage

```js
var lowercaseKeys = require('lowercase-keys');

lowercaseKeys({FOO: true, bAr: false});
//=> {foo: true, bar: false}
```


## API

### lowercaseKeys(object)

Lowercases the keys and returns a new object.



## License

MIT © [Sindre Sorhus](http://sindresorhus.com)