@altcha/crypto
Version:
A lightweight library simplifying asymmetric data encryption using Web Crypto
96 lines (95 loc) • 2.48 kB
JSON
{
"name": "@altcha/crypto",
"version": "0.0.2",
"description": "A lightweight library simplifying asymmetric data encryption using Web Crypto",
"author": "Daniel Regeci",
"license": "MIT",
"keywords": [
"altcha",
"crypto",
"aes",
"rsa",
"hybrid",
"encryption"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"scripts": {
"build": "rimraf dist && rimraf cjs/dist && tsc -b tsconfig.build.json tsconfig.cjs.json",
"denoify": "rimraf deno_dist && denoify && find deno_dist/. -type f -exec sed -i '' -e 's/node:node:/node:/g' {} +",
"eslint": "eslint ./lib/**/*",
"format": "prettier --write './(lib|tests)/**/*'",
"test": "vitest --run",
"test:deno": "deno test --unstable-sloppy-imports tests/deno.ts",
"prepare": "husky"
},
"files": [
"cjs",
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./cjs/dist/index.js",
"default": "./dist/index.js"
},
"./aes": {
"types": "./dist/aes.d.ts",
"import": "./dist/aes.js",
"require": "./cjs/dist/aes.js"
},
"./cipher": {
"types": "./dist/cipher.d.ts",
"import": "./dist/cipher.js",
"require": "./cjs/dist/cipher.js"
},
"./encoding": {
"types": "./dist/encoding.d.ts",
"import": "./dist/encoding.js",
"require": "./cjs/dist/encoding.js"
},
"./helpers": {
"types": "./dist/helpers.d.ts",
"import": "./dist/helpers.js",
"require": "./cjs/dist/helpers.js"
},
"./node-cipher": {
"types": "./dist/node-cipher.d.ts",
"import": "./dist/node-cipher.js",
"require": "./cjs/dist/node-cipher.js"
},
"./rsa": {
"types": "./dist/rsa.d.ts",
"import": "./dist/rsa.js",
"require": "./cjs/dist/rsa.js"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.js",
"require": "./cjs/dist/types.js"
}
},
"typesVersions": {
"*": {
"types": [
"./dist/types"
]
}
},
"devDependencies": {
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"denoify": "^1.6.9",
"eslint": "^8.56.0",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"tsx": "^4.0.0",
"typescript": "^5.2.2",
"vitest": "^1.0.1"
}
}