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.
assemble-render-file
Advanced tools
Assemble plugin for rendering views in a vinyl pipeline.
Install with npm:
$ npm install --save assemble-render-file
var renderFile = require('assemble-render-file');
var assemble = require('assemble');
// register as an instance plugin with assemble
var app = assemble()
.use(renderFile());
// then use in a vinyl pipeline
app.src('*.hbs')
.pipe(app.renderfile())
.pipe(app.dest('foo'));
By default, when no engine is found for a file an error is thrown. To get around this you can either define a noop
engine, or use disable the engineStrict option.
A noop engine follows the same signature as any engine, but must be registered using the key: noop
.
Example
app.engine('noop', function(view, opts, next) {
// do whatever you want to `view`, or nothing
next(null, view);
});
By default, when no engine is found for a file an error is thrown. This can be disabled with the following:
app.option('engineStrict', false);
When disabled and an engine is not found, files are just passed through.
You might also be interested in these projects:
This document was generated by verb-readme-generator (a verb generator), please don't edit directly. Any changes to the readme must be made in .verb.md. See Building Docs.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Or visit the verb-readme-generator project to submit bug reports or pull requests for the readme layout template.
(This document was generated by verb-readme-generator (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
Generate readme and API documentation with verb:
$ npm install -g verb verb-readme-generator && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on June 24, 2016.
FAQs
Assemble plugin for rendering views in a vinyl pipeline.
The npm package assemble-render-file receives a total of 23,755 weekly downloads. As such, assemble-render-file popularity was classified as popular.
We found that assemble-render-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.