JavaScript port of tokencost
Client side token counting & price estimation for LLMs
LLM Pricing Oracle — MCP server exposing real model pricing data from LiteLLM
ECMAScript AST recursive visitor
deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify
Array#isArray for older browsers
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
Buffers events from a stream until you are ready to handle them.
Get the command from a shebang
CLI arguments parser. Native port of python's argparse.
JSON parse & stringify that supports binary via bops & base64
Resolve the path of a module like `require.resolve()` but from a given path
Run a function exactly one time
Callback wrapping utility
MCP server for LLM token pricing data — query, compare, and estimate costs for 60+ AI models from OpenAI, Anthropic, Google, Meta, and more
Returns true if a string has an extglob.
Fast deep equal
Allows users to use generators in order to write common functions that can be both sync or async.
type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.
The Node.js `util.deprecate()` function with browser support
deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies
A small polyfill for Object.setprototypeof
process.nextTick but always with args
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.