jqw
v0.3.2
Published
JQ compiled to WebAssembly
Downloads
8
Readme
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