mirror of
https://github.com/emn178/js-sha256.git
synced 2026-08-12 20:32:16 +08:00
72 lines
1.9 KiB
JSON
72 lines
1.9 KiB
JSON
{
|
|
"name": "js-sha256",
|
|
"version": "0.12.0",
|
|
"description": "A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.",
|
|
"main": "src/sha256.js",
|
|
"module": "build/sha256.mjs",
|
|
"exports": {
|
|
".": {
|
|
"types": "./index.d.ts",
|
|
"node": {
|
|
"import": "./build/sha256.node.mjs",
|
|
"require": "./src/sha256.js"
|
|
},
|
|
"import": "./build/sha256.mjs",
|
|
"require": "./src/sha256.js",
|
|
"default": "./src/sha256.js"
|
|
},
|
|
"./src/sha256.js": "./src/sha256.js",
|
|
"./build/sha256.min.js": "./build/sha256.min.js",
|
|
"./build/sha256.mjs": "./build/sha256.mjs",
|
|
"./build/sha256.min.mjs": "./build/sha256.min.mjs",
|
|
"./build/sha256.node.mjs": "./build/sha256.node.mjs",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"types": "./index.d.ts",
|
|
"devDependencies": {
|
|
"@rollup/plugin-commonjs": "^28.0.5",
|
|
"@rollup/plugin-terser": "^1.0.0",
|
|
"expect.js": "~0.3.1",
|
|
"mocha": "~10.8.2",
|
|
"nyc": "^15.1.0",
|
|
"rollup": "^4.43.0",
|
|
"tiny-worker": "^2.3.0",
|
|
"uglify-js": "^3.1.9"
|
|
},
|
|
"scripts": {
|
|
"test": "nyc mocha tests/node-test.js && node tests/esm-test.mjs",
|
|
"report": "nyc --reporter=html --reporter=text mocha tests/node-test.js",
|
|
"coverage": "nyc report --reporter=text-lcov > coverage.lcov",
|
|
"build": "rollup -c && uglifyjs src/sha256.js -c -m eval --comments -o build/sha256.min.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/emn178/js-sha256.git"
|
|
},
|
|
"keywords": [
|
|
"sha",
|
|
"sha2",
|
|
"sha224",
|
|
"sha256",
|
|
"hash",
|
|
"encryption",
|
|
"cryptography",
|
|
"HMAC"
|
|
],
|
|
"license": "MIT",
|
|
"author": "Chen, Yi-Cyuan <emn178@gmail.com>",
|
|
"homepage": "https://github.com/emn178/js-sha256",
|
|
"bugs": {
|
|
"url": "https://github.com/emn178/js-sha256/issues"
|
|
},
|
|
"nyc": {
|
|
"exclude": [
|
|
"tests"
|
|
]
|
|
},
|
|
"browser": {
|
|
"crypto": false,
|
|
"buffer": false
|
|
}
|
|
}
|