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.
builder-target
Advanced tools
target build plugin for component-builder2.
Let's say you have the following component, and you want to build
api.js
api.cordova.js
You can define a new section in your component.json
(here we name it cordova) and use the plugin by calling .use('scripts', target('cordova'))
{
"cordova": {
"api.js": "api.cordova.js"
},
"scripts": [
"index.js",
"api.js"
],
"main": "index.js"
}
var fs = require('fs');
var build = require('component-builder');
var target = require('builder-target');
// build web bundle
build.scripts(nodes)
.use('scripts', build.plugins.js())
.build(function (err, string) {
if (err) throw err;
fs.writeFileSync('build.js', string);
})
// build cordova bundle
build.scripts(nodes)
.use('scripts', build.plugins.js())
.use('scripts', target('cordova'))
.build(function (err, string) {
if (err) throw err;
fs.writeFileSync('build.js', string);
})
The MIT License (MIT)
FAQs
build target plugin for component-builder
The npm package builder-target receives a total of 1 weekly downloads. As such, builder-target popularity was classified as not popular.
We found that builder-target 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.