
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
blueprints is a JavaScript template library for generating DOM elements. It takes a directory and converts it into a namespaced template library.
blueprints is a JavaScript template library for generating DOM elements. It takes a directory and converts it into a namespaced template library.
npm install blueprints
Create a template file with a .html extension (can be changed through options object see below) for this example we will name this file list.html. Place this file in a root directory and then compile it using one of the methods below.
root_dir/list.html
<div class="## if (something) { ##a-class## } ##">
## for (var i = 0, l = xs.length; i < l; i++) { ##
<span>##= xs[i].name##</span>
## } ##
</div>
When you include your compiled template library in your javascript web app you will be able to access it using the window.blueprints function passing in the id of the template and data to be used in the template.
var element = window.blueprints('list', {
something: true,
xs: [ { name:'foo' }, { name:'bar' } ]
});
Here is a slightly more compiles template directory and the ids that correspond to the different files.
root_dir/list.html list
root_dir/reports/table.html reports:table
root_dir/reports/structure.html reports:structure
root_dir/reports/daily/breakdown.html reports:daily:breakdown
Through a terminal:
$ blueprints {directory}
will out the template file to stdout
$ blueprints {directory} -o {file}
will out the template file to the specified file
$ blueprints -m {directory}
will minify the template file before outputting it
As a module:
var blueprints = require('blueprints');
new blueprints(path, { minify: true }).out(writeable_stream);
FAQs
blueprints is a JavaScript template library for generating DOM elements. It takes a directory and converts it into a namespaced template library.
We found that blueprints 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.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.