MCPcopy Index your code
hub / github.com/antfu/utils

github.com/antfu/utils @v9.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v9.3.0 ↗ · + Follow
96 symbols 181 edges 25 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

@antfu/utils

NPM version Docs

Opinionated collection of common JavaScript / TypeScript utils by @antfu.

  • Tree-shakable ESM
  • Fully typed - with TSDocs
  • Type utilities - Arrayable<T>, ElementOf<T>, etc.

This package is designed to be used as devDependencies and bundled into your dist.

Sponsors

License

MIT License © 2021-PRESENT Anthony Fu

Extension points exported contracts — how you extend this code

SingletonPromiseReturn (Interface)
(no doc)
src/promise.ts
POptions (Interface)
(no doc)
src/p.ts
CancelOptions (Interface)
(no doc)
src/vendor.ts
ControlledPromise (Interface)
(no doc)
src/promise.ts
ReturnWithCancel (Interface)
(no doc)
src/vendor.ts

Core symbols most depended-on inside this repo

objectId
called by 14
src/object.ts
template
called by 12
src/string.ts
isPrimitive
called by 11
src/is.ts
map
called by 10
src/p.ts
lerp
called by 8
src/math.ts
toString
called by 7
src/base.ts
flattenArrayable
called by 7
src/array.ts
isMergableObject
called by 7
src/object.ts

Shape

Function 76
Method 11
Interface 5
Class 4

Languages

TypeScript100%

Modules by API surface

src/p.ts15 symbols
src/array.ts15 symbols
src/object.ts12 symbols
src/is.ts12 symbols
src/promise.ts11 symbols
src/string.ts7 symbols
src/vendor.ts4 symbols
src/math.ts4 symbols
src/guards.ts4 symbols
src/base.ts4 symbols
src/function.ts3 symbols
src/is.test.ts2 symbols

For agents

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

⬇ download graph artifact