Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
npm-postgres-mashup
Advanced tools
A cli tool to replecate the npm skimdb into Postgres.
Now Utilizing JSONB!
Version 17 newness brings a lot of breaking changes.
npm install npm-postgres-mashup -g
This installs the cli tool "npm2pg". Next create an empty Postgres database.
Prior to replicating the data into the database, you'll need to build the schema. Running this after a major npm-postgres-mashup version change will drop some tables. To build the schema run:
npm2pg -d database -u username -p password --build-schema
Once the schema is built, you can start replicating the data. Do this by running:
npm2pg -d database -u username -p password
npm2pg can also build reporting tables from the package jsonb documents.
Add --reporting-tables
parameter to run this after sync is complete.
Otherwise you can run the SQL yourself (see ./db/createReportingTables.sql)
To get to the cli help about additional parameters run:
npm2pg --help
npm-postgres-mashup will automatically add the necessary tables to the postgres database.
MIT
FAQs
Replicate the npm skimdb into Postgres JSONB
We found that npm-postgres-mashup 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.