
Security News
Python Tools Are Quickly Adopting the New pylock.toml Standard
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
A lightweight CSV parser.
Run the following commands to download and install the application:
$ npm install a-csv
var CSV = require("a-csv");
var file = "test.csv";
var options = {
delimiter: ";",
charset: "win1250"
};
CSV.parse(file, options, function (err, row, next) {
if (err) {
return console.log(err);
}
if (row !== null) {
console.log(row);
return next();
}
console.log("finish");
});
parse(path, options, rowHandler)
Parses CSV files.
String path
: Path to CSV file.
Object options
: An object containing the following properties:
delimiter
(String): The CSV delimiter (default: ",").
length
(Number): The buffer size (default: 8 * 1024
).
charset
(String): The charset (default: "utf8"
).
Function rowHandler
: The row handler callback (called with err
, data
, next
arguments).
stringify(csvArray, delimiter, lineBreak)
Stringifies a CSV array.
csvArray
: The CSV array.delimiter
: The delimiter (default: ","
).lineBreak
: The line break delimiter (default: "\r\n"
).your-great-feature
.See the LICENSE file.
FAQs
A lightweight CSV parser.
The npm package a-csv receives a total of 352 weekly downloads. As such, a-csv popularity was classified as not popular.
We found that a-csv 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
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.