A powerful and flexible Retrieval-Augmented Generation (RAG) library for Node.js and TypeScript
RAG Chat bot library
Array#isArray for older browsers
CLI arguments parser. Native port of python's argparse.
Get the command from a shebang
Resolve the path of a module like `require.resolve()` but from a given path
Callback wrapping utility
JSON parse & stringify that supports binary via bops & base64
Run a function exactly one time
Allows users to use generators in order to write common functions that can be both sync or async.
ECMAScript AST recursive visitor
deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies
process.nextTick but always with args
deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
Use node's fs.realpath, but fall back to the JS implementation if the native one fails
Safer Node.js Buffer API
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
Create a stream that emits events from multiple other streams
Merge multiple streams into one stream in sequence or parallel.
Buffers events from a stream until you are ready to handle them.
Returns true if a string has an extglob.
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.
ES2015 `Object.assign()` ponyfill