A fully-typed TypeScript SDK for the SightEngine content‑moderation API, with streaming support, threshold presets, and helper utilities.
<a href="https://travis-ci.org/Sightengine/client-nodejs"> <img src="https://travis-ci.org/Sightengine/client-nodejs.svg?branch=master"> </a>
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.
Resolve the path of a module like `require.resolve()` but from a given path
JSON parse & stringify that supports binary via bops & base64
Run a function exactly one time
Callback wrapping utility
Fast deep equal
Allows users to use generators in order to write common functions that can be both sync or async.
deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies
process.nextTick but always with args
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
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.
Turn any collection of objects into its own efficient tree or linked list using Symbol
Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST
Returns true if a string has an extglob.
simplified stream construction
Safer Node.js Buffer API