
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
read-cortex-json
Advanced tools
The thing cortex uses to read cortex.json files or fallback to read cortex configurations from package.json
The thing cortex uses to read cortex.json files or fallback to read cortex configurations from package.json.
Cortex supports both cortex.json and the 'cortex' field of package.json. But with read-cortex-json, you don't have to care about all this, and you should ALWAYS use this module to read and save cortex.json.
npm install read-cortex-json --save
var cortexJson = require('read-cortex-json');
path current working directoryfunction(err, json)ErrorObjectReads and returns the information of a cortex package.
cortexJson.read('/path/to/your/repo', function(err, json){
if (err) {
console.error('There was an error', e);
return;
}
console.log('The package data is:', json);
});
This method is different from cortexJson.read() that it will validate some stuff and flavors the object with some default values which cortex registry needs.
For most situations, you need not use this.
function(err)Validates the json data for a specified cwd. This method will validate directories and entries.
function(err)Save the json to the file.
function(root)Traverses up from the cwd and gets the first directory that contains a package file of cortex.
Sometimes user might run cortex commands inside the subtle directories of the current repo, and we must make sure cortex commands always run at the root directory.
String package namepath cache directory of the current profilefunction(err, document)jsonGets the cached document.
FAQs
The thing cortex uses to read cortex.json files or fallback to read cortex configurations from package.json
We found that read-cortex-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.