UNPKG

slimcryptdb

Version:

A minimalist, ultra-secure embedded database for Node.js applications

134 lines (133 loc) 3.53 kB
{ "name": "slimcryptdb", "version": "2.2.3", "description": "A minimalist, ultra-secure embedded database for Node.js applications", "main": "dist/SlimCryptDB.min.js", "scripts": { "pretest": "npm run lint && npm run format:check", "test": "jest --verbose --coverage --detectOpenHandles", "posttest": "npm run test:security", "test:watch": "jest --watch", "test:security": "npm audit && node security-test.js", "test:minified": "npm run build:minify && node ./example.js", "prebuild": "npm run clean && npm run test", "build": "npm run build:minify && npm run docs", "build:minify": "terser SlimCryptDB.js --config-file terser.config.json --output dist/SlimCryptDB.min.js", "postbuild": "npm run test:minified", "clean": "rm -rf dist coverage docs", "docs": "jsdoc -c jsdoc.json", "lint": "eslint *.js --max-warnings=0", "lint:fix": "eslint *.js --fix", "format": "prettier --write \"*.js\" \"*.json\" \"*.md\"", "format:check": "prettier --check \"*.js\" \"*.json\" \"*.md\"", "prepare": "npm run build", "prepublishOnly": "npm run test && npm run build", "size": "npm run build:minify && ls -lh dist/SlimCryptDB.min.js && gzip -c dist/SlimCryptDB.min.js | wc -c | xargs -I{} echo 'Gzipped: {} bytes'", "validate": "npm run lint && npm run format:check && npm run test && npm run build", "perf": "node perf-test.js", "perf:quick": "PERF_ITERATIONS=1 PERF_TABLE_SIZE=500 PERF_READS_PER_ITER=200 node perf-test.js" }, "keywords": [ "database", "encryption", "embedded", "lightweight", "security", "nosql", "json", "edge-computing", "iot", "serverless", "aes-256-gcm", "wal", "acid", "transactions" ], "author": { "name": "Shane Coates", "url": "https://github.com/Syras206" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/Syras206/slimcryptdb.git" }, "bugs": { "url": "https://github.com/Syras206/slimcryptdb/issues" }, "homepage": "https://github.com/Syras206/slimcryptdb#readme", "engines": { "node": ">=18.0.0", "npm": ">=8.0.0" }, "files": [ "SlimCryptDB.d.ts", "dist/SlimCryptDB.min.js", "dist/SlimCryptDB.min.js.map", "README.md" ], "types": "SlimCryptDB.d.ts", "devDependencies": { "@types/node": "^20.0.0", "eslint": "^8.57.0", "jest": "^29.7.0", "jsdoc": "^4.0.2", "prettier": "^3.0.0", "terser": "^5.42.0" }, "jest": { "testEnvironment": "node", "collectCoverageFrom": [ "SlimCryptDB.js" ], "coverageReporters": [ "text", "lcov", "html" ], "coverageThreshold": { "global": { "branches": 50, "functions": 65, "lines": 65, "statements": 65 } }, "testTimeout": 30000, "verbose": true }, "eslintConfig": { "env": { "node": true, "es2021": true, "jest": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 2021, "sourceType": "module" }, "rules": { "no-unused-vars": [ "error", { "argsIgnorePattern": "^_" } ], "no-console": "off", "prefer-const": "error", "no-var": "error", "eqeqeq": "error" } }, "prettier": { "semi": true, "singleQuote": true, "tabWidth": 2, "trailingComma": "es5", "printWidth": 80 }, "browserslist": [ "node >= 18" ] }