Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@proscom/xlsx-to-database
Advanced tools
Cli tool to import sheets from xlsx file to the database tables
Currently supports only PostgreSQL databases via pg. Uses pg-copy-streams for faster inserts. Uses xlsx to parse xlsx files.
npm install -g @proscom/xlsx-to-database
$ xlsx-to-database \
-i input.xlsx \
-d database.json \
-c
$ xlsx-to-database --help
Options:
--help Show help [boolean]
--version Show version number [boolean]
--input, -i Input xlsx file [string] [required]
--database, -d Path to database connection configuration file
[string] [required]
--tables, -t Only import specified sheets [array]
--prefix, -p Prefix is prepended to the sheet name to get table name
[string] [default: ""]
--batchSize Amount of rows per single insert query[number] [default: 1000]
--drop Drops and recreates matched tables [boolean] [default: false]
--create, -c Creates tables [boolean] [default: false]
{
"adapter": "pgsql",
"host": "127.0.0.1",
"port": "5432",
"username": "root",
"password": "root",
"database": "test",
"schema": "test"
}
Configuration file is read via require()
, so you can also use a .js
file to dynamically generate a configuration.
It may be useful in order to read environment variables for example.
FAQs
Imports sheets from xlsx file to the database tables
The npm package @proscom/xlsx-to-database receives a total of 0 weekly downloads. As such, @proscom/xlsx-to-database popularity was classified as not popular.
We found that @proscom/xlsx-to-database demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.