UNPKG

unixcrypt

Version:

Node.js implementation of Unixcrypt, specifically SHA-256 and SHA-512

59 lines (58 loc) 1.91 kB
{ "name": "unixcrypt", "version": "3.0.4", "description": "Node.js implementation of Unixcrypt, specifically SHA-256 and SHA-512", "type": "module", "exports": { ".": { "import": { "default": "./dist/index.js", "types": "./dist/index.d.ts" } } }, "types": "./dist/index.d.ts", "scripts": { "build": "npm run clean && npm run build:prod", "build:prod": "tsc -p ./tsconfig.prod.json", "build:test": "tsc -p .", "clean": "rimraf dist && rimraf *.tsbuildinfo && rimraf coverage && mkdir -p dist coverage", "prep": "npm install && husky && chmod ug+x .husky/*", "prepublishOnly": "npm run build", "test": "npm run clean && npm run test:one", "test:one": "npm run build:test && node --enable-source-maps --test --experimental-test-coverage --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=./coverage/lcov.info ./dist/**/*.test.js && npm run test:cov", "test:cov": "lcov-parse --summary ./coverage/lcov.info > ./coverage/coverage-summary.json", "test:watch": "npm run clean && nodemon -e ts -w ./src --exec 'npm run test:one'" }, "engines": { "node": ">=20.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/markusberg/unixcrypt.git" }, "keywords": [ "sha256crypt", "sha512crypt", "unixcrypt" ], "author": "Markus Berg", "license": "Apache-2.0", "bugs": { "url": "https://github.com/markusberg/unixcrypt/issues" }, "homepage": "https://github.com/markusberg/unixcrypt#readme", "devDependencies": { "@markusberg/lcov-parse": "^3.0.0", "@types/node": "^24.5.2", "husky": "^9.1.7", "lint-staged": "^16.2.7", "nodemon": "^3.1.11", "prettier": "^3.7.4", "rimraf": "^6.1.2", "typescript": "^5.9.3" }, "lint-staged": { "(*.ts|*.md)": "prettier --write --check" } }