lodash @ 4.2.1 - README.md
1
# lodash v4.2.1
2
3
The [lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
4
5
## Installation
6
7
Using npm:
8
```bash
9
$ {sudo -H} npm i -g npm
10
$ npm i --save lodash
11
```
12
13
In Node.js:
14
```js
15
// load the full build
16
var _ = require('lodash');
17
// load the core build
18
var _ = require('lodash/core');
19
// load the fp build for immutable auto-curried iteratee-first data-last methods
20
var _ = require('lodash/fp');
21
22
// or a method category
23
var array = require('lodash/array');
24
var object = require('lodash/fp/object');
25
26
// or method for smaller builds with browserify/rollup/webpack
27
var chunk = require('lodash/chunk');
28
var extend = require('lodash/fp/extend');
29
```
30
31
See the [package source](https://github.com/lodash/lodash/tree/4.2.1-npm) for more details.
32
33
**Note:**<br>
34
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.<br>
35
Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash by default.
36
37
## Module formats
38
39
Lodash is available in a variety of other builds & module formats.
40
41
* [lodash](https://www.npmjs.com/package/lodash) & [per method packages](https://www.npmjs.com/browse/keyword/lodash-modularized)
42
* [lodash-amd](https://www.npmjs.com/package/lodash-amd)
43
* [lodash-es](https://www.npmjs.com/package/lodash-es) & [babel-plugin-lodash](https://www.npmjs.com/package/babel-plugin-lodash)
44
45
## Further Reading
46
47
* [API Documentation](https://lodash.com/docs)
48
* [Build Differences](https://github.com/lodash/lodash/wiki/Build-Differences)
49
* [Changelog](https://github.com/lodash/lodash/wiki/Changelog)
50
* [Roadmap](https://github.com/lodash/lodash/wiki/Roadmap)
51
* [More Resources](https://github.com/lodash/lodash/wiki/Resources)
52
53
## Support
54
55
Tested in Chrome 47-48, Firefox 43-44, IE 9-11, Edge 13, Safari 8-9, Node.js 0.10, 0.12, 4, & 5, & PhantomJS 1.9.8.
56
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available. Special thanks to [Sauce Labs](https://saucelabs.com/) for providing automated browser testing.
57