Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "pg-helpers", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Helpers for quering a postgres database", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"lint": "node_modules/.bin/goodparts .", | ||
"coverage": "istanbul check-coverage", | ||
"test": "istanbul cover tape ./tests/*.test.js | node_modules/tap-spec/bin/cmd.js" | ||
}, | ||
@@ -21,3 +23,17 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/postgres-plugin/pg-helpers#readme" | ||
} | ||
"homepage": "https://github.com/postgres-plugin/pg-helpers#readme", | ||
"devDependencies": { | ||
"env2": "^2.1.1", | ||
"goodparts": "^1.2.0", | ||
"istanbul": "^0.4.5", | ||
"pg": "^6.1.0", | ||
"pre-commit": "^1.1.3", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.6.2" | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"test", | ||
"coverage" | ||
] | ||
} |
# pg-helpers | ||
A list of helpers to query a Postgres database | ||
## Tests | ||
By default the tests will run with the following configuration for Postgres: | ||
``` | ||
{ | ||
user: 'postgres', | ||
database: 'test', | ||
password: '', | ||
host: 'localhost', | ||
port: 5432, | ||
max: 10, | ||
idleTimeoutMillis: 30000 | ||
}; | ||
``` | ||
You can change this default values by defining the following environment variable in a .env file: | ||
``` | ||
PG_USER=user_pg | ||
PG_PASSWORD=the_password | ||
PG_DATABASE=the_db_name | ||
``` |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4809
10
86
1
23
7
5