
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
将目录树的路径信息转换为镜像JS对象结构
npm install nft
let NFT = require('nft')
let modules = NFT(options)
options
Object
path
String - 指定递归目录(必填)
contain
Array - 仅包含指定文件或目录,不能与exclude同时使用(可选)
exclude
Array - 排除指定文件或目录,不能与contain同时使用(可选)
file(filePath, filename)
Function - 文件类型递归触发函数
filePath
String - 文件绝对路径
fileName
* - 包含后缀的文件名
directory(dirPath, dirName)
Function - 目录类型递归触发函数
dirPath
Object - 目录绝对路径
dirName
Object - 目录名称
let NFT = require('batch-import')
let files = NFT({
"extend": {
"path": "app/extend",
"exclude": ['e'],
file(filePath, filename) {
},
directory(dirPath, dirName) {
}
},
"controllers": {
"path": "app/controllers",
"contain": ["_route.js"],
"exclude": ['c1'],
file(filePath, filename) {
},
directory(dirPath, dirName) {
}
},
"models": {
"path": "app/models",
"exclude": ['c1.js'],
file(filePath, filename) {
},
directory(dirPath, dirName) {
}
}
})
FAQs
The npm package nft receives a total of 1 weekly downloads. As such, nft popularity was classified as not popular.
We found that nft 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.