
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
xlsx-to-directories
Advanced tools
xlsx-to-directories module expose one functionality that take a file with .xlsx extension and create a new directory for each row in the specified ouput directory.
xlsx-to-directories module expose one functionality that take a file with .xlsx extension and create a new directory for each row in the specified ouput directory.
A1 | B1 |
---|---|
1 | Azienda1 |
2 | Azienda2 |
... | Azienda... |
There must be two columns.
Except for the first row that is intended as labels, the follwings rows must be of type number
for the first column and type string
for the second column.
Start parsing the file one row at a time. If it is the fist row (the row with the labels), do nothing. If the two columns of the row contains correct values, combine them into one single string. Otherwise do nothing for incorrect values. Create a new directory in the path specified in input using the new created srting as the directory name name. When there is no more rows left terminate the script.
Install the module
npm i --save xlsx-to-directories
Import and usage
const xlsxToDir = require('xlsx-to-directories')
xlsxToDir('path_to_file', 'path_to_dir')
.then(count => {
console.log(`${count} new folder${count > 1 ? 's' : ''}`)
})
.catch(error => {
console.error(error)
})
FAQs
xlsx-to-directories module expose one functionality that take a file with .xlsx extension and create a new directory for each row in the specified ouput directory.
The npm package xlsx-to-directories receives a total of 0 weekly downloads. As such, xlsx-to-directories popularity was classified as not popular.
We found that xlsx-to-directories 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.