152 packages found
'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.
Fast in-process flat file database that caches all data in memory
Recursively compacts collection values (arrays and objects), removing empty values from your arrays & objects
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
RDF Prefix helper to expand and compact iri (compatible with json-ld context)
Convert BitTorrent compact hostname & port buffer to a string 'hostname:port'
The lodash method `_.compact` exported as a module.
returns a copy of an array with falsey values removed
Schemas for JSON Objects, or simply SJOT, offers faster JSON validation and type checking with lightweight schemas and compact validators. SJOT schemas have the look and feel of object templates and are easy to use.
Companion module for SJOT schemas (npm package sjot), creates a SJOT schema from JSON data to efficiently validate and type-check JSON data streams.
Base64 encoding and decoding for Node.JS and browsers without polyfills
mdast utility to make a tree compact
Hint web reporter compatible with htmlhint, jshint, csslint and maybe others
- View more
Remove leading, trailing, and repeated whitespace from a string
A better way to view a compact JS abstract syntax tree
An object that keeps string keys in insertion order which can be re-ordered as needed. Minimal code.
Serialization token codes for qb1 data format