jqw
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

jqw

JQ compiled to WebAssembly.

See bench and demo for usage examples.

Install

npm i jqw

Features

  • TypeScript type definitions
  • Async, runs in Web Worker, doesn't block the main thread
  • 5-15ms run time on ~1mb JSON for a typical query (see bench; tested on Chrome@M1)
  • <2kb library code, <20kb Web Worker code, <500kb WebAssembly (<1mb with regexp support)

Goals

  • Browser Web Worker environment
  • Fastest run time on ~1mb JSON file
  • Smallest possible build size, as long as peformance isn't hurt
  • Optimized for rarely modified input file, isn't optimized for large output

Demo

License

Readme

Keywords

Package Sidebar

Install

npm i jqw

Weekly Downloads

0

Version

0.3.2

License

CC0-1.0

Unpacked Size

1.47 MB

Total Files

9

Last publish

Collaborators

  • kagami