MCPcopy
hub / github.com/remeda/remeda

github.com/remeda/remeda @v2.39.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.39.0 ↗
520 symbols 2,064 edges 587 files 10 documented · 2%
README

Remeda

The first "data-first" and "data-last" utility library designed especially for TypeScript.

GitHub License GitHub top language Codecov GitHub branch status NPM GitHub Release Date NPM Downloads

GitHub Repo stars OpenSSF Scorecard OpenSSF Best Practices Libraries.io SourceRank Commits All contributors

Documentation

Read the full docs and API reference on remedajs.com/docs.

Migrating from other libraries? Check out our migration guides for Lodash and Ramda!

Interested in contributing? Read the contributing guide.

Features

  • First-class TypeScript support, with types that are as specific as possible.
  • Supports data-first (filter(array, fn)) and data-last (filter(fn)(array)) approaches.
  • Lazy evaluation support with pipe and piped.
  • Runtime and types are both extensively tested, with full code coverage.
  • Tree-shakable, supports CJS and ESM.
  • Fully documented with JSDoc, supports in-editor function documentation.

Getting started

Installation

npm install remeda
pnpm add remeda
yarn add remeda
bun install remeda
deno add jsr:@remeda/remeda

Usage

import { pipe, forEach, unique, take } from "remeda";

pipe(
  [1, 2, 2, 3, 3, 4, 5, 6],
  forEach((value) => console.log(`Got ${value}`)),
  unique(),
  take(3),
); // => [1, 2, 3]

// Console output:
// Got 1
// Got 2
// Got 2
// Got 3

Getting help

Questions, bug reports, and feature requests are tracked in GitHub issues.

Contributors

Made with contrib.rocks.

Extension points exported contracts — how you extend this code

AB (Interface)
(no doc)
packages/remeda/src/hasProp.test-d.ts
MyInterface (Interface)
(no doc)
packages/remeda/src/isEmpty.test-d.ts
FooInterface (Interface)
(no doc)
packages/remeda/src/merge.test-d.ts
Foo (Interface)
(no doc)
packages/remeda/src/mergeDeep.test-d.ts
Bar (Interface)
(no doc)
packages/remeda/src/mergeDeep.test-d.ts

Core symbols most depended-on inside this repo

pipe
called by 661
packages/remeda/src/pipe.ts
constant
called by 286
packages/remeda/src/constant.ts
identity
called by 198
packages/remeda/src/identity.ts
prop
called by 173
packages/remeda/src/prop.ts
pick
called by 165
packages/remeda/src/pick.ts
sleep
called by 151
packages/remeda/test/sleep.ts
isEmptyish
called by 149
packages/remeda/src/isEmptyish.ts
stringToPath
called by 147
packages/remeda/src/stringToPath.ts

Shape

Function 482
Class 24
Interface 9
Method 5

Languages

TypeScript100%

Modules by API surface

packages/docs/src/components/ui/dropdown-menu.tsx15 symbols
packages/remeda/src/isEmptyish.test.ts14 symbols
packages/docs/src/components/ui/sheet.tsx10 symbols
packages/docs/src/components/ui/card.tsx7 symbols
packages/remeda/src/isDeepEqual.ts6 symbols
packages/remeda/src/funnel.ts6 symbols
packages/remeda/src/debounce.ts6 symbols
packages/remeda/src/pick.test-d.ts5 symbols
packages/remeda/src/isDeepEqual.test.ts5 symbols
packages/remeda/src/internal/purryOrderRules.ts5 symbols
packages/remeda/src/prop.test.ts4 symbols
packages/remeda/src/pipe.ts4 symbols

Dependencies from manifests, versioned

@arethetypeswrong/core0.18.3 · 1×
@astrojs/check0.9.9 · 1×
@astrojs/mdx6.0.2 · 1×
@astrojs/react5.0.7 · 1×
@astrojs/sitemap3.7.3 · 1×
@astrojs/ts-plugin1.10.9 · 1×
@docsearch/react4.6.3 · 1×
@eslint/js10.0.1 · 1×
@fast-check/vitest0.4.1 · 1×
@tailwindcss/typography0.5.19 · 1×
@tailwindcss/vite4.2.4 · 1×
@types/eslint9.6.1 · 1×

For agents

$ claude mcp add remeda \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact