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.
broccoli-ractive
Advanced tools
This [broccoli](https://github.com/broccolijs/broccoli) plugin compiles Ractive component files. If you're not yet familiar with component files, [start here](https://github.com/ractivejs/component-spec).
This broccoli plugin compiles Ractive component files. If you're not yet familiar with component files, start here.
To try it out:
# Clone this repo and set it up
git clone https://github.com/ractivejs/broccoli-ractive.git
cd broccoli-ractive
npm i
# Fire up broccoli
broccoli serve
Once you're up and running, navigate to localhost:4200. You should see a clock - the one defined in the clock.html component file.
For the demo, we're converting to an AMD module, but you can also generate node.js modules (e.g. for use with the broccoli-browserify plugin) or ES6 modules.
npm i -D broccoli-ractive # `i` is short for `install`, `-D` means `--save-dev`
Inside your brocfile.js
:
var compileRactive = require( 'broccoli-ractive' );
var tree = compileRactive( inputTree, {
destDir: 'path/to/output'
});
The inputTree
option can be a string, e.g. path/to/ractive_components
. The second argument is an object with the following options:
[**/*.html]
(i.e. all HTML files in the input tree). An array of file minimatch patterns to match.amd
. The type of JavaScript module to convert to. Can be either amd
, cjs
(node.js modules) or es6
.## License
MIT.
FAQs
This [broccoli](https://github.com/broccolijs/broccoli) plugin compiles Ractive component files. If you're not yet familiar with component files, [start here](https://github.com/ractivejs/component-spec).
The npm package broccoli-ractive receives a total of 3 weekly downloads. As such, broccoli-ractive popularity was classified as not popular.
We found that broccoli-ractive 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.