Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@macro-plugin/shared
Advanced tools
Shared utils for internel and plugin usage.
# if you use npm
npm i -D @macro-plugin/shared
# if you use pnpm
pnpm i -D @macro-plugin/shared
# if you use yarn
yarn add -D @macro-plugin/shared
addHook
add a require hook
picomatch
picomatch file matcher
autoRequire
require or import a package
loadConfigFile
async loading macros.config.js
or macros.config.ts
.
loadConfigFileSync
sync loading macros.config.js
or macros.config.ts
.
writeDts
write dts to path, check if content is same first.
extractSwcOptions
extract swc options from all your defined options.
buildTransformOptions
load config file, then return [swcOptions, macroOptions, configPath]
extractInput
split (file | pattern)[]
to { files, patterns }
extractFiles
extract files from (file | pattern)[]
FAQs
macro-plugin shared utils for plugins
We found that @macro-plugin/shared 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.