
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@aux4/db-postgres
Advanced tools
$ npm install @aux4/db-postgres
const Database = require("@aux4/db-postgres");
const db = new Database({
host: "localhost",
user: "postgres",
password: "******",
database: "template1"
});
(async () => {
await db.open();
const { data } = await db.execute("select * from table where id = :id", { id: 1 });
console.log(JSON.stringify(data, null, 2));
await db.close();
})();
const Database = require("@aux4/db-postgres");
const db = new Database({
host: "localhost",
user: "postgres",
password: "******",
database: "template1"
});
const stream = await db.stream("select * from table where id = :id", { id: 1 });
stream.on("data", row => {
console.log(JSON.stringify(row, null, 2));
});
stream.on("error", err => {
console.error(err.message);
});
stream.on("close", async () => {
await db.close();
});
$ npm install --global @aux4/db
$ npm install --global @aux4/db-postgres
$ db execute --host localhost --port 5432 --user postgres --database template1 --query "select * from table where id = :id" --id 1
$ db stream --host localhost --port 5432 --user postgres --database template1 --query "select * from table where id = :id" --id 1
create config.yaml
config:
dev:
postgres:
host: localhost
port: 5432
user: postgres
password: "******"
database: template1
$ db execute --configFile config.yaml --config dev/postgres --query "select * from table where id = :id" --id 1
FAQs
Database CLI for Postgres
We found that @aux4/db-postgres demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.