# @bigbinary/neeto-cist

> A package encapsulating common utility functions used across neeto products

Latest version **1.0.17** (published 2025-05-09) · apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @bigbinary/neeto-cist
pnpm add @bigbinary/neeto-cist
yarn add @bigbinary/neeto-cist
bun add @bigbinary/neeto-cist
```

Provides the commands `dead-code-eliminator`, `remove-unused-translation-keys`.

## Health

**Score 45/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.17 |
| Published | 2025-05-09 |
| First published | 2023-09-22 |
| Weekly downloads | 0 |
| License | apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22.13 |
| Dependencies | 0 |
| Unpacked size | 290.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | neerajdotname, bigbinarybot, neetohq |

## Links

- npm: https://www.npmjs.com/package/@bigbinary/neeto-cist
- Repository: https://github.com/bigbinary/neeto-cist
- Homepage: https://github.com/bigbinary/neeto-cist#readme
- Issues: https://github.com/bigbinary/neeto-cist/issues
- npm.io page: https://npm.io/package/@bigbinary/neeto-cist

## Recent versions

- 1.0.17 (latest) — 2025-05-09
- 1.1.0-beta2 (beta) — 2024-09-19
- 1.0.15 — 2025-02-17
- 1.0.14 — 2024-12-03
- 1.0.13 — 2024-10-11
- 1.1.0-beta1 — 2024-09-19
- 1.0.12 — 2024-09-18
- 1.0.11 — 2024-07-16
- 1.0.10 — 2024-06-29
- 1.0.9 — 2024-03-13
- 1.0.8 — 2024-01-10
- 1.0.7 — 2024-01-04
- 1.0.6 — 2023-12-08
- 1.0.5 — 2023-11-23
- 1.0.4 — 2023-11-01
- … 4 more at https://npm.io/package/@bigbinary/neeto-cist/versions

## README

# neeto-cist

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

A collection of common utility functions used across all our
[neeto](https://neeto.com) products. Try out the utility functions live at
[neetoCommons REPL](https://neeto-cist.neeto.com/). 

## Contents
  - [Installation](#installation)
  - [Usage](#usage)
  - [Available functions](#available-functions)
  - [Development](#development)

## Installation

Install from npm:

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

Install the peer dependencies:

```bash
yarn add ramda
```

## Usage

You can import all functions from `@bigbinary/neeto-cist`.

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

Exports several general utility functions that are used throughout neeto
products. The functions are structured in a manner reminiscent of Ramda,
enabling seamless interoperability among them.

Pure functions were designed to be fail fast. If you call `findById(10, null)`,
it will throw error saying that it can't iterate through `null`.

But for most such pure functions, there is a failsafe alternative available. The
failsafe alternative function will be prefixed with `_`. Example:
`_findById(10, null)` returns `null`, `_findById(10, undefined)` returns
`undefined` and `_findById(10, [{ id: 10 }])` returns `{ id: 10 }`.

## Available functions

<table>
<thead>
<tr>
<th>

Array operations

</th>
<th>

Object operations

</th>
<th>

String operations

</th>
<th>

General utility functions

</th>
</tr>
</thead>
<tbody>
<tr>
<td style="vertical-align: top;">

- [findById](docs/pure/arrays/findById.md)
- [findIndexById](docs/pure/arrays/findIndexById.md)
- [removeById](docs/pure/arrays/removeById.md)
- [replaceById](docs/pure/arrays/replaceById.md)
- [modifyById](docs/pure/arrays/modifyById.md)
- [existsById](docs/pure/arrays/existsById.md)

---

- [findBy](docs/pure/arrays/findBy.md)
- [findIndexBy](docs/pure/arrays/findIndexBy.md)
- [removeBy](docs/pure/arrays/removeBy.md)
- [replaceBy](docs/pure/arrays/replaceBy.md)
- [modifyBy](docs/pure/arrays/modifyBy.md)
- [existsBy](docs/pure/arrays/existsBy.md)
- [findLastBy](docs/pure/arrays/findLastBy.md)
- [findLastIndexBy](docs/pure/arrays/findLastIndexBy.md)
- [filterBy](docs/pure/arrays/filterBy.md)
- [countBy](docs/pure/arrays/countBy.md)

---

- [renameKeys](docs/pure/arrays/renameKeys.md)
- [copyKeys](docs/pure/arrays/copyKeys.md)
- [copyKeysDeep](docs/pure/arrays/copyKeysDeep.md)

</td>
<td  style="vertical-align: top;">

- [matchesImpl](docs/pure/objects/matchesImpl.md)
- [transformObjectDeep](docs/pure/objects/transformObjectDeep.md)
- [keysToCamelCase](docs/pure/objects/keysToCamelCase.md)
- [keysToSnakeCase](docs/pure/objects/keysToSnakeCase.md)
- [serializeKeysToSnakeCase](docs/pure/objects/serializeKeysToSnakeCase.md)
- [preprocessForSerialization](docs/pure/objects/preprocessForSerialization.md)
- [deepFreezeObject](docs/pure/objects/deepFreezeObject.md)
- [matches](docs/pure/objects/matches.md)
- [filterNonNull](docs/pure/objects/filterNonNull.md)

</td>
<td  style="vertical-align: top;">

- [slugify](docs/pure/strings/slugify.md)
- [humanize](docs/pure/strings/humanize.md)
- [snakeToCamelCase](docs/pure/strings/snakeToCamelCase.md)
- [camelToSnakeCase](docs/pure/strings/camelToSnakeCase.md)
- [capitalize](docs/pure/strings/capitalize.md)
- [hyphenate](docs/pure/strings/hyphenate.md)
- [truncate](docs/pure/strings/truncate.md)

</td>
<td  style="vertical-align: top;">

- [nullSafe](docs/pure/general/nullSafe.md)
- [noop](docs/pure/general/noop.md)
- [toLabelAndValue](docs/pure/general/toLabelAndValue.md)
- [getRandomInt](docs/pure/general/getRandomInt.md)
- [randomPick](docs/pure/general/randomPick.md)
- [dynamicArray](docs/pure/general/dynamicArray.md)
- [isNotEmpty](docs/pure/general/isNotEmpty.md)
- [isNot (notEquals)](docs/pure/general/isNot.md)
- [isNotPresent](docs/pure/general/isNotPresent.md)
- [isPresent](docs/pure/general/isPresent.md)
- [isNotEqualDeep (alias notEqualsDeep)](docs/pure/general/isNotEqualDeep.md)
- [modifyWithImmer](docs/pure/general/modifyWithImmer.md)
</td>
<tr>
</tbody>
</table>

## Development

- [Development instructions](./docs/general/development-instructions.md)
- [API documentation logistics](./docs/general/api-documentation-logistics.md)
- [Building and releasing](./docs/general/building-and-releasing.md)

---
_Source: https://npm.io/package/@bigbinary/neeto-cist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
