blurhash-c-wasm/package.json
Fries f7bbb92d85 change up api, and bump down version
the api now requires you to call an async function initWasm to make the
functions work instead of using top level await. i also optimized the
wasm module to have O3 and fast-math (which the original blurhash
makefile had and the results do seem to be the same with the javascript
blurhash).

I also gave the wasm instance functions inside typescript types and i
fixed a bug where i didnt free the pointers in order so if you called
decode too many times, you will run out of memory.
2023-08-14 19:24:20 -07:00

21 lines
538 B
JSON

{
"type": "module",
"name": "@fries/blurhash-c-wasm",
"version": "0.1.0",
"description": "A WASM module using the Blurhash C library",
"main": "dist/blurhash-c-wasm.cjs",
"module": "dist/blurhash-c-wasm.js",
"types": "dist/library.d.ts",
"scripts": {
"build": "make && rollup -c rollup.config.js",
"prepublishOnly": "pnpm build"
},
"author": "Fries",
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.2",
"@rollup/plugin-wasm": "^6.1.3",
"rollup": "^3.28.0",
"typescript": "^5.1.6",
"tslib": "^2.6.1"
}
}