UNPKG

sha-anything

Version:

A tiny TS utility to sha256 anything, including objects (with sorted keys option). Uses native crypto in browser & NodeJS.

53 lines (52 loc) 1.29 kB
{ "name": "sha-anything", "version": "1.0.2", "description": "A tiny TS utility to sha256 anything, including objects (with sorted keys option). Uses native crypto in browser & NodeJS.", "type": "module", "sideEffects": false, "exports": { ".": "./dist/index.js" }, "engines": { "node": ">=18" }, "scripts": { "test": "vitest run", "lint": "tsc --noEmit && eslint ./src", "build": "del-cli dist && tsc", "release": "npm run lint && npm run build && np" }, "dependencies": { "crypto-hash": "^3.1.0", "fast-sort": "^3.4.1", "is-what": "^5.2.0" }, "devDependencies": { "@cycraft/eslint": "^0.4.3", "@cycraft/tsconfig": "^0.1.2", "del-cli": "^6.0.0", "np": "^10.2.0", "vitest": "^3.0.6" }, "files": [ "dist" ], "keywords": [ "sha", "sha256", "crypto", "hash", "hash-object", "hash-function", "typescript" ], "author": "Luca Ban - Mesqueeb (https://cycraft.co)", "funding": "https://github.com/sponsors/mesqueeb", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/mesqueeb/sha-anything.git" }, "homepage": "https://github.com/mesqueeb/sha-anything#readme", "bugs": "https://github.com/mesqueeb/sha-anything/issues" }