@elastic/lodash

中文文档
3.10.1-kibana4发布于 2020/01/14MITCommonJS零依赖近 30 天下载 1.3万

The modern build of lodash modular utilities.

原始使用文档
文档目录5 节
  1. Installation
  2. Module formats
  3. Further Reading
  4. Features
  5. Support

THIS IS A TEMPORARY FORK OF LODASH FOR INTERNAL USE IN KIBANA

lodash v3.10.1

The modern build of lodash exported as Node.js/io.js modules.

Generated using lodash-cli:

$ lodash modularize modern exports=node -o ./
$ lodash modern -d -o ./index.js

Installation

Using npm:

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

In Node.js/io.js:

// load the modern build
var _ = require('lodash');
// or a method category
var array = require('lodash/array');
// or a method (great for smaller builds with browserify/webpack)
var chunk = require('lodash/array/chunk');

See the package source for more details.

Note:
Don’t assign values to the special variable _ when in the REPL.
Install n_ for a REPL that includes lodash by default.

Module formats

lodash is also available in a variety of other builds & module formats.

Further Reading

Features

Support

Tested in Chrome 43-44, Firefox 38-39, IE 6-11, MS Edge, Safari 5-8, ChakraNode 0.12.2, io.js 2.5.0, Node.js 0.8.28, 0.10.40, & 0.12.7, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7.6. Automated browser & CI test runs are available. Special thanks to Sauce Labs for providing automated browser testing.

版本与发布记录

@elastic/lodash 共发布 4 个版本,首次发布于 2018/09/24;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.10.1-kibana4latest2020/01/146 年前
3.10.1-kibana32019/07/107 年前
3.10.1-kibana22019/07/097 年前
3.10.1-kibana12018/09/248 年前

关于 @elastic/lodash 的常见问题

@elastic/lodash 是什么?

The modern build of lodash modular utilities.

如何安装 @elastic/lodash?

在项目目录运行 npm install @elastic/lodash,或使用 pnpm add / yarn add / bun add。

@elastic/lodash 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/elastic__lodash 是否存在。

@elastic/lodash 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@elastic/lodash 可以商用吗?

@elastic/lodash 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@elastic/lodash 的下载量有多少?

根据 npm 官方下载统计,@elastic/lodash 在 2026/10/14 – 2026/11/12 这 30 天内被下载 12,726 次,日均约 424 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elastic/lodash 还在维护吗?

最新版本 3.10.1-kibana4 发布于 2020/01/14(6 年前);至今共发布 4 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/09/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。