
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
利用promise简单实现了异步获取指定目录下,指定文件的功能
const getFile = require('getFiles');
const A = new getFile('demo','js');
A.getResult({
callback: function(arr){
console.log(arr)
}
});
const getFile = require('getFiles');
const A = new getFile('demo');
A.getResult({
suffix:['js','css'],
callback: function(arr){
console.log(arr)
}
});
const getFile = require('getFiles');
const A = new getFile();
A.getResult({
root:'demo',
suffix:['js','css'],
callback: function(arr){
console.log(arr)
}
});
简单地说,可以构建实例的时候就确定参数,也可以构建一个实例,在调用的时候在传参。已getResult入参为准
FAQs
利用promise简单实现了异步获取指定目录下,指定文件的功能
The npm package getfiles receives a total of 2 weekly downloads. As such, getfiles popularity was classified as not popular.
We found that getfiles 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
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.