
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
A Webpack plugin for loading dsv files (for example .csv).
Install via npm:
npm install --save dsv-loader
You can require dsv data like this:
var data = require('dsv!./data.csv');
// => returns data.csv content as json parsed object
The loader will translate the data.csv
file into a JSON Object.
To require dsv files like this: require('data.csv')
, you can add the dsv-loader to your webpack config:
module : {
loaders : [
{ test: /\.csv$/, loader: 'dsv-loader' } //will load all .csv files with dsv-loader by default
]
}
delimiter
Tells the loader which delimiter is used to seperate the data. Default: ','
Examples:
var data = require('dsv?delimiter=;!./data.csv'); //load data seperated by semicolon
var data = require('dsv?delimiter=x!./data.csv'); //load data seperated by an 'x'
data.csv
Hello | World |
---|---|
42 | "fish" |
foo | bar |
var data = require(data.csv) //[{"Hello": "42", "World": "fish"}, {"Hello": "foo", "World": "bar"}, columns: ["Hello", "World"]]
FAQs
A webpack module to load dsv (e.g. .csv or .tsv) files.
The npm package dsv-loader receives a total of 2,755 weekly downloads. As such, dsv-loader popularity was classified as popular.
We found that dsv-loader 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 CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.