
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
properties-to-json
Advanced tools
Convert Java .properties
files to JSON (using JavaScript).
The function propertiesToJSON
takes a string and returns
a JavaScript object.
node
:const fs = require("fs");
const path = require("path");
const filePath = path.join(__dirname, "sample.properties");
const propertiesToJSON = require("properties-to-json");
fs.readFile(filePath, { encoding: "utf-8" }, (err, data) => {
if (!err) {
console.log(propertiesToJSON(data));
}
});
const propertiesToJSON = require("properties-to-json");
const propsFile = new Request(
"https://gitcdn.link/repo/ryanpcmcquen/propertiesToJSON/master/sample.properties"
);
const props = fetch(propsFile)
.then((response) => {
return response.text();
})
.then((text) => {
const propsText = propertiesToJSON(text);
console.log(propsText);
return propsText;
});
yarn add properties-to-json
FAQs
Convert a Java properties file to JSON (with JavaScript).
The npm package properties-to-json receives a total of 4,537 weekly downloads. As such, properties-to-json popularity was classified as popular.
We found that properties-to-json 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.