Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
fez-browserify
Advanced tools
Browserify for your fez. Make your code Uber portable from backend to frontend.
Browserify for your fez. Make your code Uber portable from backend to frontend.
npm install fez-browserify
Pretty simple spec for Fez. It runs browserify for your files. If failures exist it throws an error ending the build process.
More documentation to come, but the tests and the fez documentation should be enough for you early birds to get start.
Tests are included here for ease of access.
var browserify = require('../src/main');
var test = require('tape');
var through = require('through');
// Mock Input object -- simple mock
var Input = function (filepath){
this.filepath = filepath;
}
Input.prototype.getFilename = function () {
return this.filepath;
}
function bundleTest(options, inputs, cb) {
var runner = browserify(options)
var bundleStream = runner(inputs);
var output = '';
bundleStream.on('data', function(d) {
output += d.toString('utf8');
})
bundleStream.on('error', function(e) {
cb(e, '');
})
bundleStream.on('end', function() {
cb(null, output);
});
}
test('Browserify Should return a transformed file with hello world', function(t) {
t.plan(1);
bundleTest(
{transforms:['brfs']},
[new Input(__dirname+'/inputs/fstest.js')],
function (err, output) {
if (err) t.fail(err);
t.assert(output.indexOf('hello world') !== -1);
t.end();
}
)
});
test('Browserify Should return a transformed file with goodbye world', function(t) {
t.plan(1);
var trText = function (file) {
var data = '';
return through(function write(buff){
data += buff.toString('utf8');
}, function end() {
this.queue(data.replace('hello', 'goodbye'));
this.queue(null);
})
}
bundleTest(
{transforms:['brfs', trText]},
[new Input(__dirname+'/inputs/fstest.js')],
function (err, output) {
if (err) t.fail(err);
t.assert(output.indexOf('goodbye world') !== -1);
t.end();
}
)
});
FAQs
Browserify for your fez. Make your code Uber portable from backend to frontend.
The npm package fez-browserify receives a total of 1 weekly downloads. As such, fez-browserify popularity was classified as not popular.
We found that fez-browserify 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.