UNPKG

@dfinity/principal

Version:

JavaScript and TypeScript library to work with Internet Computer principals

72 lines (71 loc) 1.85 kB
{ "name": "@dfinity/principal", "version": "2.4.1", "author": "DFINITY Stiftung <sdk@dfinity.org>", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to work with Internet Computer principals", "homepage": "https://internetcomputer.org", "repository": { "type": "git", "url": "https://github.com/dfinity/agent-js.git", "directory": "packages/principal" }, "bugs": { "url": "https://github.com/dfinity/agent-js/issues" }, "keywords": [ "internet computer", "ic", "dfinity", "canister", "webauthn", "identity", "principal", "dfx", "candid", "motoko", "javascript", "typescript", "blockchain", "crypto", "distributed", "api" ], "main": "./lib/cjs/index.js", "module": "./lib/esm/index.js", "unpkg": "./lib/esm/index", "scripts": { "build": "tsc -b && tsc -p tsconfig-cjs.json", "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js", "size-limit": "size-limit", "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", "lint:fix": "npm run lint -- --fix", "make:docs/reference": "typedoc src/index.ts --out ../../docs/principal --excludeInternal", "test": "jest", "test:coverage": "jest --collectCoverage" }, "devDependencies": { "@dfinity/utils": "^2.0.0", "@types/jest": "^29.5.5", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", "esbuild": "^0.25.1", "eslint": "^8.19.0", "jest": "^29.7.0", "size-limit": "^8.2.6", "text-encoding": "^0.7.0", "ts-node": "^10.8.2", "typedoc": "^0.22.11", "whatwg-fetch": "^3.0.0" }, "size-limit": [ { "path": "./dist/index.js", "limit": "100 kB", "webpack": false } ], "dependencies": { "@noble/hashes": "^1.3.1" } }