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.
Convert lines of JSON data to CSV.
It's very convenient to write Node.js scripts that dump out a serialized object to a line. Most text processing utilities though cannot handle data like this. However, many can handle CSV files.
npm install jsontocsv
var jsontocsv = require('jsontocsv')
jsontocsv(inputStream, outputStream, {header: false, whitelist: whitelistFields, separator: ','}, function (err) {
if (!err) console.log('Success.')
});
The separator is ',' as default.
Usage: jsontocsv [options]
Options:
-h, --help output usage information
-V, --version output the version number
-b, --blacklist [fields] Prevent blacklisted fields from output, otherwise all will be used.
-w, --whitelist [fields] Only allow whitelisted fields in output, otherwise all will be used.
-i, --input [file] Input file. Otherwise STDIN.
-o, --output [file] Output file. Otherwise STDOUT.
-h, --header [true/false] If set to the true, the CSV header will be output. Defaults to true.
jsontocsv
(MIT License)
Copyright 2013, JP Richardson jprichardson@gmail.com
FAQs
Convert lines of JSON data to CSV
We found that jsontocsv 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.
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.