
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.