UNPKG

pfrng

Version:

Provably Fair Random Number Generator

88 lines (87 loc) 2.23 kB
{ "name": "pfrng", "version": "0.2.0", "description": "Provably Fair Random Number Generator", "homepage": "https://github.com/andykswong/pfrng", "author": "Andy K.S. Wong <andykswong@outlook.com>", "repository": { "type": "git", "url": "git+https://github.com/andykswong/pfrng.git" }, "bugs": { "url": "https://github.com/andykswong/pfrng/issues" }, "license": "MIT", "keywords": [ "prng", "chance", "provably", "fair", "crypto", "hash", "random" ], "type": "module", "sideEffects": false, "main": "index.js", "types": "index.d.ts", "exports": { "import": "./index.js" }, "files": [ "/dist", "index.js", "index.d.ts" ], "scripts": { "prepublishOnly": "npm run clean && npm run build && npm test", "clean": "rimraf coverage docs dist", "prebuild": "npm run lint", "build": "npm run babel && npm run tsc", "babel": "babel src -d dist --source-maps --extensions '.ts' --out-file-extension .js", "tsc": "tsc --project tsconfig.build.json --emitDeclarationOnly", "lint": "eslint src --ext .ts,.tsx", "test": "npm run jest", "jest": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest", "jest:watch": "npm run jest -- --watch", "doc": "typedoc --out docs src/index.ts" }, "dependencies": { "jssha": "^3.2.0" }, "devDependencies": { "@babel/cli": "^7.18", "@babel/core": "^7.18", "@babel/preset-env": "^7.18", "@babel/preset-typescript": "^7.18", "@types/jest": "^29.2", "@types/node": "^18.11", "@typescript-eslint/eslint-plugin": "^5.44", "@typescript-eslint/parser": "^5.44", "babel-jest": "^29.2", "babel-plugin-add-import-extension": "^1.6", "cross-env": "^7.0", "eslint": "^8.28", "jest": "^29.2", "rimraf": "^3.0", "typedoc": "^0.23", "typescript": "^4.9" }, "jest": { "extensionsToTreatAsEsm": [ ".ts" ], "setupFilesAfterEnv": [ "<rootDir>/jest.setup.ts" ], "testMatch": [ "**/__tests__/**/*.spec.ts" ], "collectCoverage": true, "collectCoverageFrom": [ "src/**/*.ts", "!**/__tests__/**" ], "coverageDirectory": "coverage" } }