
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@brainhubeu/hadron-json-provider
Advanced tools
npm install @brainhubeu/hadron-json-provider --save
JSON Provider allows you to automatically load multiple files as JSON object, with file names as object keys, and files data as object values. Currently we support following extensions:
.js.json.xmljsonProvider(paths, extensions);
paths - array of strings which contains paths to filesextensions - array of strings which contains extensions of files from which you want to build an JSON objectFor example, having directory with the following structure:

To find all files in ./routing and its sub-directories with extension config.js you can use following code:
jsonProvider(['./routing/**/*'], ['config.js'])
.then((object) => {})
.catch((error) => {});
configJsonProvider(paths, configFile, projectType, extensions);
paths - array of strings which contains paths to filesconfigFile - name of main configuration fileprojectType - project typeextensions - array of strings which contains extensions of files from which you want to build an JSON objectFor example, having directory with the following structure:

If you want to build configuration object which depends on project type, for example development you can use following code
configJsonProvider(['./app/config/*'], 'config', 'development', ['xml', 'js'])
.then((object) => {})
.catch((error) => {});
FAQs
Hadron json provider module
The npm package @brainhubeu/hadron-json-provider receives a total of 1 weekly downloads. As such, @brainhubeu/hadron-json-provider popularity was classified as not popular.
We found that @brainhubeu/hadron-json-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.