Files
lodash/README.md
2015-02-02 23:05:15 -08:00

9.5 KiB
Raw Blame History

Lo-Dash v3.0.0-pre

A utility library delivering consistency, customization, performance, & extras.

Documentation

Download

Review the build differences & pick the one thats right for you.

CDN copies are available on cdnjs & jsDelivr.
Create custom builds with only the features you need.
Love modules? Weve got you covered with lodash-amd, lodash-node, & npm packages per method.

Dive in

Check out our unit tests, benchmarks, changelog, roadmap, as well as community created podcasts, posts, & videos.

Installation

In a browser:

<script src="lodash.js"></script>

In an AMD loader:

require(['lodash'], function(_) {/*…*/});

Using npm:

$ {sudo -H} npm install -g npm
$ npm i --save lodash

$ {sudo -H} npm i -g lodash
$ npm ln lodash

In Node.js:

// the default modern build
var _ = require('lodash');

// or the compat build
var _ = require('lodash-compat');

// or specific methods
var clone = require('lodash/lang/clone');
var keysIn = require('lodash-compat/object/keysIn');
var transform = require('lodash.transform');

Note: Dont assign values to the special variable _ when in the REPL. Install n_ for a version of the REPL that includes Lo-Dash by default.

Features not in Underscore

Support

Tested in Chrome (19, 38-39), Firefox (3, 20, 33-34), IE 6-11, Opera 25-26, Safari 5-8, Node.js 0.8.26~0.10.35, PhantomJS 1.9.7, RingoJS 0.11, & Rhino 1.7RC5.

Automated browser test runs are available as well as CI runs for lodash, lodash-cli, lodash-amd, lodash-node, & grunt-lodash. Special thanks to Sauce Labs for providing automated browser testing.