pg-embedded
Version:
Embedded PostgreSQL database for Node.js - Easy setup, high performance, TypeScript support
196 lines • 6.11 kB
JSON
{
"name": "pg-embedded",
"version": "0.2.1+pg17.5",
"description": "Embedded PostgreSQL database for Node.js - Easy setup, high performance, TypeScript support",
"type": "module",
"module": "index.js",
"main": "index.cjs",
"types": "index.d.ts",
"repository": {
"url": "git+ssh://git@github.com/PgTsLabs/pg-embedded.git",
"type": "git"
},
"homepage": "https://github.com/PgTsLabs/pg-embedded#readme",
"bugs": {
"url": "https://github.com/PgTsLabs/pg-embedded/issues"
},
"license": "Apache-2.0",
"keywords": [
"postgresql",
"postgres",
"embedded",
"database",
"testing",
"integration-tests",
"typescript",
"rust",
"napi-rs",
"node-addon",
"cross-platform",
"embedded-database",
"test-database",
"development-database",
"in-memory-database",
"database-testing",
"ci-cd",
"unit-testing",
"sql",
"relational-database"
],
"files": [
"binding.cjs",
"binding.d.ts",
"binding.js",
"index.d.ts",
"index.cjs",
"index.js"
],
"napi": {
"binaryName": "pg-embedded",
"packageName": "@pg-ts/pg-embedded",
"targets": [
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-linux-android",
"aarch64-unknown-linux-musl",
"armv7-linux-androideabi"
]
},
"exports": {
"import": "./index.js",
"require": "./index.cjs",
"types": "./index.d.ts"
},
"engines": {
"node": ">= 10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"provenance": true
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/PgTsLab"
},
"author": {
"name": "PgTsLab",
"email": "kingsword09@gmail.com",
"url": "https://github.com/PgTsLab"
},
"contributors": [
{
"name": "Kingsword",
"email": "kingsword09@gmail.com",
"url": "https://github.com/kingsword09"
}
],
"scripts": {
"artifacts": "napi artifacts",
"bench": "node --import @oxc-node/core/register benchmark/bench.ts",
"build": "napi build --platform --release --js binding.cjs --dts binding.d.ts",
"build:debug": "napi build --platform --js binding.cjs --dts binding.d.ts",
"build:all": "napi build --platform --release --js binding.cjs --dts binding.d.ts && pnpm artifacts",
"build:check": "node scripts/build-check.js",
"clean": "rimraf target/ *.node npm/ binding.d.ts binding.cjs",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:toml": "taplo format",
"format:rs": "cargo fmt",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"check": "run-s format lint test:basic",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"test:startup": "node test-pg-startup.js",
"test:basic": "ava __test__/basic.test.ts __test__/connection.test.ts __test__/async-integration.test.ts",
"test:performance": "ava __test__/performance-benchmarks.test.ts",
"test:stability": "ava __test__/stability.test.ts",
"test:all": "run-s test:basic test:performance test:stability",
"examples": "run-s examples:*",
"examples:simple": "node examples/simple-example.js",
"examples:async": "node examples/async-example.js",
"examples:testing": "node examples/testing-example.js",
"validate": "node scripts/validate-release.js",
"prerelease": "run-s validate",
"release:prepare": "node scripts/prepare-release.js",
"release:prepare:minor": "node scripts/prepare-release.js minor",
"release:prepare:major": "node scripts/prepare-release.js major",
"release:publish": "node scripts/publish-release.js",
"release:publish:dry": "node scripts/publish-release.js --dry-run",
"release:patch": "run-s release:prepare release:publish",
"release:minor": "run-s release:prepare:minor release:publish",
"release:major": "run-s release:prepare:major release:publish",
"pg:version": "node scripts/extract-pg-version.js",
"pg:version:win": "powershell -ExecutionPolicy Bypass -File scripts/extract-pg-version.ps1",
"pg:update": "node scripts/update-pg-version.js",
"pg:test": "node scripts/test-version-scripts.js",
"version": "napi version"
},
"devDependencies": {
"@napi-rs/cli": "^3.0.3",
"@oxc-node/core": "^0.0.30",
"@taplo/cli": "^0.7.0",
"@types/node": "^24.1.0",
"ava": "^6.4.1",
"chalk": "^5.4.1",
"husky": "^9.1.7",
"lint-staged": "^16.1.2",
"npm-run-all2": "^8.0.4",
"oxlint": "^1.8.0",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"tinybench": "^4.0.1",
"typescript": "^5.8.3"
},
"lint-staged": {
"*.@(js|ts|tsx)": [
"oxlint --fix"
],
"*.@(js|ts|tsx|yml|yaml|md|json)": [
"prettier --write"
],
"*.toml": [
"taplo format"
]
},
"ava": {
"extensions": {
"ts": "module"
},
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
},
"nodeArguments": [
"--import",
"@oxc-node/core/register"
]
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
},
"packageManager": "pnpm@10.13.1",
"optionalDependencies": {
"@pg-ts/pg-embedded-darwin-x64": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-darwin-arm64": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-linux-x64-gnu": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-win32-x64-msvc": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-linux-x64-musl": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-linux-arm64-gnu": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-linux-arm-gnueabihf": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-android-arm64": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-linux-arm64-musl": "0.2.1+pg17.5",
"@pg-ts/pg-embedded-android-arm-eabi": "0.2.1+pg17.5"
}
}