UNPKG

quick-struct

Version:

C like style to write struct layout, and it can convert variable length array or string automatically. It can be used in Node.js and Browser

52 lines 1.44 kB
{ "name": "quick-struct", "version": "1.0.0", "main": "./build/index.js", "types": "./types/index.d.ts", "author": "aokihu <aokihu@gmail.com>", "license": "MIT", "keywords": [ "bin", "binary", "variable length", "data layout", "convert", "arraybuffer", "buffer", "struct", "structor", "c", "rust", "encode", "decode", "big-endian", "little-endian", "endianness" ], "description": "C like style to write struct layout, and it can convert variable length array or string automatically. It can be used in Node.js and Browser", "homepage": "https://github.com/aokihu/quick-struct", "maintainers": [ "aokihu@gmail.com" ], "publisher": "aokihu@gmail.com", "bugs": { "email": "aokihu@gmail.com", "url": "https://github.com/aokihu/quick-struct/issues" }, "scripts": { "prepublish": "yarn clean && yarn build && npx tsc --emitDeclarationOnly --outDir build", "prepack": "rm -rf build && yarn build", "build": "node esbuild.js", "pretest": "npx tsc && npx esbuild src/index.ts --bundle --platform=node --target=node16 --outfile=build/index.js", "test": "npx mocha", "bench": "yarn build && node benchmark/index.mjs", "clean": "rm -rf build" }, "devDependencies": { "@types/node": "^17.0.23", "esbuild": "^0.14.32", "mocha": "^9.2.2", "ts-loader": "^9.2.8", "typescript": "^4.6.3" } }