Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
simple-json2csv
Advanced tools
A simple json to csv converter nodejs module
This module is installed via npm:
$ npm install simple-json2csv
It exposes a SimpleJson2Csv class with a constructor that accepts a single parameter with following properties.
data: the array of objects to be converted [{}...]
fields: array of field objects or simple strings [{ name: 'blah', header: 'Blah Header' }...]
header property is optional in which case name property or string will be use for column name
transform: the function which will be called on each object function(obj) { return transformed; }
var SimpleJson2Csv = require('simple-json2csv');
// create a new instance
var json2Csv = new SimpleJson2Csv({
fields: [
{ field: "name", header: "Name" },
{ field: "email", header: "Email Address" }
],
data: [
{ name: "John Blue", email: "john.blue@domain.com" },
{ name: "Lab Black", email: "lab.black@domain.com" }
]
});
json2Csv.pipe(fs.createWriteStream('/path/to/some/file'));
// hint: listen for 'close' on the writable file stream
FAQs
A simple json to csv converter nodejs module
We found that simple-json2csv 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.