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.
browserify v2 plugin for bliss
install blissify locally to your project
npm install blissify
Create templates using bliss; by default blissify transforms .html
files
@!(name)
<h1>Hello @name!</h1>
Require and use those templates in your view (backbone), controller (spine), etc.
var template = require('template.html');
$('body').html(template({name: 'Nali'}));
On the command line, transform module with browserify -t
option:
browserify -t blissify main.js > bundle.js
Or, in a bundler script (e.g. bundler.js
), use blissify as a transform:
var browserify = require('browserify');
var blissify = require('blissify');
var b = browserify();
b.add('view.js');
b.transform(blissify);
b.bundle().pipe(process.stdout);
Then, run the script to bundle it up:
node bundler
Pro tip: you can configure a custom extension for blissify
bundler.transform(blissify.configure('.bliss'));
To set the transformer in debug mode, set verbose=true
when instatiating blissify
var blissify = require('blissify');
blissify.verbose = true;
When enabled, debug mode will console.log
when a raw template is successfully recompiled and console.error
when a parse error occurs. This is super helpful if you're using watchify. an error will look like:
[blissify] error: <badTemplate.html>
<errorStackTrace>
Note that when in debug mode, the error is not passed to the through
stream.
0.1.x
to 1.0.0
?b.transform(blissify())
to b.transform(blissify)
drink up me 'earties, yo ho!
FAQs
a browserify v2 plugin for bliss
The npm package blissify receives a total of 1 weekly downloads. As such, blissify popularity was classified as not popular.
We found that blissify 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.