UNPKG

nodedb-json

Version:

A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities

78 lines (77 loc) 2.06 kB
{ "name": "nodedb-json", "version": "1.4.1", "description": "A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities", "type": "module", "main": "./dist/cjs/index.cjs", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "exports": { ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/cjs/index.d.cts", "default": "./dist/cjs/index.cjs" }, "default": "./dist/esm/index.js" }, "./package.json": "./package.json" }, "scripts": { "build": "node scripts/build.cjs", "lint": "eslint src test", "typecheck": "tsc --noEmit && tsc -p tsconfig.test.json", "prepublishOnly": "npm run build", "example": "npm run build && node example/index.js", "example:ts": "npm run build && node --loader ts-node/esm example/ts-example.ts", "example:index": "npm run build && node --loader ts-node/esm example/index-example.ts", "example:query": "npm run build && node --loader ts-node/esm example/query-example.ts", "test": "npm run build && vitest run" }, "repository": { "type": "git", "url": "git+https://github.com/zxbb1190/nodedb-json.git" }, "keywords": [ "json", "database", "nodejs", "typescript", "lightweight", "file-based", "indexing", "query", "pagination", "aggregation", "sorting" ], "author": { "name": "Xiaoman", "email": "douyaj33@gmail.com" }, "license": "MIT", "bugs": { "url": "https://github.com/zxbb1190/nodedb-json/issues", "email": "douyaj33@gmail.com" }, "dependencies": { "lodash": "^4.17.21" }, "devDependencies": { "@types/lodash": "^4.14.202", "@types/node": "^20.10.5", "eslint": "^9.39.4", "ts-node": "^10.9.2", "typescript": "^5.3.3", "typescript-eslint": "^8.61.1", "vitest": "^3.2.4" }, "files": [ "dist/**/*", "README.md", "LICENSE" ] }