UNPKG

@benfen/bcs

Version:

BCS - Canonical Binary Serialization implementation for JavaScript

67 lines 1.7 kB
{ "name": "@benfen/bcs", "version": "0.1.0", "description": "BCS - Canonical Binary Serialization implementation for JavaScript", "license": "Apache-2.0", "author": "OpenBlock<developers@benfen.org>", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "files": [ "dist", "src", "CHANGELOG.md" ], "keywords": [ "bcs", "libra", "diem", "move", "serialization", "serde" ], "size-limit": [ { "path": "dist/index.js", "limit": "10 kB" }, { "path": "dist/index.mjs", "limit": "10 kB" } ], "devDependencies": { "@size-limit/preset-small-lib": "^8.2.6", "size-limit": "^8.2.6", "tsup": "^7.1.0", "typescript": "^5.1.6", "vitest": "^0.33.0" }, "dependencies": { "bs58": "^5.0.0", "fast-sha256": "^1.3.0" }, "scripts": { "clean": "rm -rf tsconfig.tsbuildinfo ./dist", "dev": "pnpm build --watch", "build": "pnpm build:types && pnpm build:tsup", "build:tsup": "tsup ./src/index.ts --format esm,cjs --sourcemap", "build:types": "tsc --build", "test": "vitest run", "test:watch": "vitest", "prettier:check": "prettier -c --ignore-unknown .", "prettier:fix": "prettier -w --ignore-unknown .", "eslint:check": "eslint --max-warnings=0 .", "eslint:fix": "pnpm run eslint:check --fix", "lint": "pnpm run eslint:check && pnpm run prettier:check", "lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix" } }