UNPKG

random-pie

Version:

A lightweight TypeScript/JavaScript library providing Python-style random number generation and randomization utilities. This utility module implements the most common functions from Python's random module, making it intuitive for Python developers workin

74 lines (73 loc) 2.48 kB
{ "name": "random-pie", "version": "2.0.1", "description": "A lightweight TypeScript/JavaScript library providing Python-style random number generation and randomization utilities. This utility module implements the most common functions from Python's random module, making it intuitive for Python developers working with TypeScript or JavaScript.", "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" } }, "files": [ "dist" ], "scripts": { "build": "tsc", "build:prod": "tsc -p tsconfig.prod.json", "build:watch": "tsc --watch", "prepublishOnly": "npm run clean && npm run build:prod && node clean-maps.js && npm run test", "test": "jest", "test:watch": "jest --watch", "clean": "rimraf dist coverage", "format": "prettier --write \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" \"examples/**/*.{ts,js}\" \"*.{js,json}\"", "format:check": "prettier --check \"src/**/*.{ts,js}\" \"test/**/*.{ts,js}\" \"examples/**/*.{ts,js}\" \"*.{js,json}\"", "linter": "tsc --noEmit", "lint": "eslint . --ext .ts,.js", "lint:fix": "eslint . --ext .ts,.js --fix", "cleanup": "rimraf src/**/*.js", "pack": "npm pack --dry-run", "import-test:all": "node ./test/import-tests/import-test.js && ts-node ./test/import-tests/import-test.ts", "examples:js": "node ./examples/javascript/basic-usage.js", "examples:ts": "ts-node ./examples/typescript/basic-usage.ts", "examples:all": "npm run examples:js && npm run examples:ts" }, "keywords": [ "random", "Python random", "JavaScript", "TypeScript", "JavaScript Random", "TypeScript Random", "randomization", "utility", "Python" ], "author": "SkorpionG2000", "license": "MIT", "homepage": "https://github.com/SkorpionG2000/random-pie", "repository": { "type": "git", "url": "git+https://github.com/SkorpionG2000/random-pie.git" }, "dependencies": { "range-pie": "^2.1.0" }, "devDependencies": { "@eslint/js": "^9.28.0", "@types/jest": "^29.5.14", "@types/node": "^22.15.20", "eslint": "^9.28.0", "globals": "^16.2.0", "jest": "^29.7.0", "prettier": "^3.5.3", "rimraf": "^5.0.10", "ts-jest": "^29.3.4", "ts-node": "^10.9.2", "typescript": "^5.8.3", "typescript-eslint": "^8.33.1" } }