# @bigbinary/neeto-cist 中文文档

规范地址：https://npmcn.com/package/%40bigbinary/neeto-cist/

版本：1\.0\.17
npm 元数据更新时间：2025-05-09T18:10:12.016Z
中文译文更新时间：2026-11-08T01:52:58.665Z
软件包许可：apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40bigbinary/neeto-cist
原文对照：https://npmcn.com/package/%40bigbinary/neeto-cist/?lang=original
项目主页：https://github.com/bigbinary/neeto-cist#readme
源码仓库：https://github.com/bigbinary/neeto-cist

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：297 kB，7 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=22\.13
- 运行依赖：0 个
- peer 依赖：ramda ^0\.29\.0
- 首次发布：2023-09-22T12:22:26.527Z
- 最新版本发布：2025-05-09T18:10:11.789Z
- 近 30 天下载量：149866（2026-10-08 至 2026-11-06，npm 官方下载统计）
- 已发布版本数：19（近 12 个月 0 个）

## 中文简介

包包,包含所有neto产品通用的公用功能

## 安装

```sh
npm install @bigbinary/neeto-cist
```

也可以使用：`pnpm add @bigbinary/neeto-cist`、`yarn add @bigbinary/neeto-cist`、`bun add @bigbinary/neeto-cist`

## README

# 需要坚持

[![BuildStatus](https://neeto-engineering.neetoci.com/badges/neeto-cist/workflows/default.svg)](https://neeto-engineering.neetoci.com/projects/neeto-cist)

收集我们所有使用的共同公用功能 [必须](https://neeto.com/) 产品。 尝试运行功能 [需要共同回应](https://neeto-cist.neeto.com/)。 。 。 .

## 目录

-   [安装](https://npmcn.com/package/%40bigbinary/neeto-cist/#readme-installation)
-   [使用量](https://npmcn.com/package/%40bigbinary/neeto-cist/#readme-usage)
-   [现有职能](https://npmcn.com/package/%40bigbinary/neeto-cist/#readme-available-functions)
-   [发展](https://npmcn.com/package/%40bigbinary/neeto-cist/#readme-development)

## 安装

从 npm 安装 :

```bash
yarn add @bigbinary/neeto-cist@latest
```

安装对等依赖 :

```bash
yarn add ramda
```

## 使用量

您可以从 `@bigbinary/neeto-cist`。 。 。 .

```js
import { slugify } from "@bigbinary/neeto-cist";
```

输出在整个neto中使用的几种通用功能 产品。 这些功能的结构让人想起了拉姆达, 能够相互间无缝互通.

纯粹的功能被设计成快速失败. 如果你打电话 `findById(10, null)`, (中文(简体) ), 它会扔出错误 说它不能通过 `null`。 。 。 .

但对于大多数这种纯粹的功能来说,存在着一种万无一失的替代品。 这个 故障安全替代函数将使用前缀 `_`示例: `_findById(10, null)` 返回时 `null`, (中文(简体) ), `_findById(10, undefined)` 返回时 `undefined` 财务报告和审定财务报表 `_findById(10, [{ id: 10 }])` 返回时 `{ id: 10 }`。 。 。 .

## 现有职能

| 
阵列操作

 | 

对象操作

 | 

字符串操作

 | 

一般公用事业职能

 |
| --- | --- | --- | --- |
| 

-   [找到 ById 键盘](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/findById.md)
-   [查找IndexById 数据](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/findIndexById.md)
-   [删除字节](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/removeById.md)
-   [替换ById](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/replaceById.md)
-   [修改ById](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/modifyById.md)
-   [存在字节](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/existsById.md)

* * *

-   [找到 By 键](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/findBy.md)
-   [找到 IndexBy 键](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/findIndexBy.md)
-   [删除By](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/removeBy.md)
-   [替换By](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/replaceBy.md)
-   [修改By](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/modifyBy.md)
-   [存在By](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/existsBy.md)
-   [找到最后一个](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/findLastBy.md)
-   [找到 LastIndexBy 时](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/findLastIndexBy.md)
-   [过滤By](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/filterBy.md)
-   [计数By](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/countBy.md)

* * *

-   [重命名关键字](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/renameKeys.md)
-   [复制键](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/copyKeys.md)
-   [复制键深](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/arrays/copyKeysDeep.md)

 | 

-   [匹配图像](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/matchesImpl.md)
-   [变换对象深度](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/transformObjectDeep.md)
-   [键 到 CamelCase](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/keysToCamelCase.md)
-   [密钥到 SnakeCase](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/keysToSnakeCase.md)
-   [序列化 Keys ToSnake Case](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/serializeKeysToSnakeCase.md)
-   [预处理ForSerial化](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/preprocessForSerialization.md)
-   [深冻对象](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/deepFreezeObject.md)
-   [匹配](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/matches.md)
-   [过滤器无](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/objects/filterNonNull.md)

 | 

-   [拼写](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/slugify.md)
-   [人性化](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/humanize.md)
-   [蛇通卡梅尔Case](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/snakeToCamelCase.md)
-   [骆驼到SnakeCase](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/camelToSnakeCase.md)
-   [利用](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/capitalize.md)
-   [连字符](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/hyphenate.md)
-   [截线](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/strings/truncate.md)

 | 

-   [无安全](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/nullSafe.md)
-   [无](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/noop.md)
-   [标记和标签](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/toLabelAndValue.md)
-   [获取随机输入](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/getRandomInt.md)
-   [随机选择](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/randomPick.md)
-   [动态阵列](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/dynamicArray.md)
-   [无效](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/isNotEmpty.md)
-   [是非( 非单位)](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/isNot.md)
-   [未提交](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/isNotPresent.md)
-   [当前](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/isPresent.md)
-   [非等深 (别名不是等深)](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/isNotEqualDeep.md)
-   [修改](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/pure/general/modifyWithImmer.md)

 |

## 发展

-   [发展指示](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/general/development-instructions.md)
-   [API 文献后勤](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/general/api-documentation-logistics.md)
-   [建造和释放](https://npmcn.com/package/%40bigbinary/neeto-cist/docs/general/building-and-releasing.md)

## 常见问题

### @bigbinary/neeto-cist 是什么？

包包,包含所有neto产品通用的公用功能

### 如何安装 @bigbinary/neeto-cist？

在项目目录运行 npm install @bigbinary/neeto-cist，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：ramda（^0\.29\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。它还提供命令行工具 dead-code-eliminator、remove-unused-translation-keys，可以用 npx dead-code-eliminator 直接运行。

### @bigbinary/neeto-cist 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @bigbinary/neeto-cist 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @bigbinary/neeto-cist 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=22\.13。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @bigbinary/neeto-cist 可以商用吗？

@bigbinary/neeto-cist 使用 apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @bigbinary/neeto-cist 的下载量有多少？

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

### @bigbinary/neeto-cist 还在维护吗？

最新版本 1\.0\.17 发布于 2025/05/10（1\.5 年前）；至今共发布 19 个版本，其中过去 12 个月发布了 0 个；首次发布于 2023/09/22。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

