UNPKG

@subspace/reed-solomon-erasure.wasm

Version:

Rust implementation of read-solomon erasure-coding compiled to Web Assembly

47 lines (46 loc) 1.63 kB
{ "name": "@subspace/reed-solomon-erasure.wasm", "author": "Nazar Mokrynskyi <nazar@mokrynskyi.com>", "description": "Rust implementation of read-solomon erasure-coding compiled to Web Assembly", "keywords": [ "reed-solomon", "erasure coding", "parify", "shard", "error correction", "ecc" ], "version": "0.2.5", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/subspace/reed-solomon-erasure.wasm.git" }, "files": [ "dist" ], "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "npm run clean && npm run lint && npm run compile-wasm && npm run compile && npm run fix-currentScript && npm run copy-wasm && npm run minify", "compile-wasm": "wasm-pack build --release --out-dir wasm-build && cp wasm-build/reed_solomon_erasure_bg.wasm src/ && rm -rf wasm-build", "clean": "rm -rf dist", "compile": "tsc -b", "fix-currentScript": "LINE_TO_MOVE='globalThis.document.currentScript' && LINE=$(grep $LINE_TO_MOVE dist/index.js) && echo \"$LINE\\n$(grep -v $LINE_TO_MOVE dist/index.js)\" > dist/index.js", "lint": "tslint --project .", "copy-wasm": "cp src/*.wasm dist/", "minify": "terser --compress --mangle -- dist/index.js > dist/index.min.js", "test": "npm run lint && ts-node node_modules/.bin/tape tests/**/*.ts", "build-and-publish": "npm run build && npm publish" }, "dependencies": { "@types/node": "^12.7.5" }, "devDependencies": { "@types/tape": "^4.2.33", "tape": "^4.11.0", "terser": "^4.3.1", "tslint": "^5.20.0", "typescript": "^3.6.3" } }