Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Grunt plugin to help with administering Postgres.
If you haven't used grunt before, be sure to check out the Getting Started guide.
From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:
npm install --save-dev grunt-pg
Once that's done, add this line to your project's Gruntfile:
grunt.loadNpmTasks('grunt-pg');
If the plugin has been installed correctly, running grunt --help
at the command line should list the newly-installed
plugin's task or tasks. In addition, the plugin should be listed in package.json as a devDependency
, which ensures
that it will be installed whenever the npm install
command is run.
Firstly, an example of using the pgcreate task:
grunt.initConfig({
pgcreatedb: {
project1: {
// Target-specific file lists and/or options go here.
name: 'project1', // will be created
connection: {
user: 'postgres',
database: 'template1',
},
},
},
})
There are 5 tasks in grunt-pg: pgcreateuser, pgdropuser, pgcreatedb, pgowner, pgdropdb and pgsqlfile. Each task is a multitask.
Each works similarly as the example above shows. The connection credentials must be a user who is privieleged enough to be able to perform these operations. For example, using the 'postgres' user to the 'template1' database should be sufficient.
The connection object can also specify anything that node-pg understands: user, database, password, port and host.
Each task also requires the following:
2013-01-16: 0.1.0 -
Copyright (c) 2013 Moneytribe. MIT.
FAQs
Grunt plugin to help with administering Postgres.
We found that grunt-pg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.