brfs icon indicating copy to clipboard operation
brfs copied to clipboard

browserify fs.readFileSync() static asset inliner

Results 23 brfs issues
Sort by recently updated
recently updated
newest added

Hi, I was doing a vera code scan against one of my code base and there came up with a medium vulnerability of using a older version of path-parse. In...

This pr adds 2 extra options to manipulate the file content that is read by the readFile functions. This allows you to modify content that is been returned by readFile...

I have a project where I need to exclude certain source files from being transformed by brfs (due to various reasons). I found many issues where people have similar needs,...

Many modules uses `require` to dynamically load JSON files. Example: ``` js require('./path/' + name + '.json'); ```

The `Buffer` constructor is deprecated for security reason; Node recommends using `Buffer.from()` instead in such situations. Until it's fixed, it'll print annoying warning messages.

I think this is feasible, and I personally think this is really useful. In node.js it's reasonably common for me to do things like: ``` javascript // controllers/index.js 'use strict';...

I'm trying to do a brfs transform after 6to5ify, but get the following error. ``` browserify() .require("main", { entry: true }) .transform(6to5ify) .transform(brfs) .bundle() .pipe(fs.createWriteStream(path.join('app.js'))); ``` ``` events.js:72 throw er;...

Via @blackgate: > Sure: > ```js > const fs = require("fs"); > const browserify = require("browserify"); > browserify("./script.js", { debug: true }) > .transform("babelify", {presets: ["env"], sourceMaps: true}) > .transform("brfs")...

When I use require to load some json, if I use this file in different modules, browserify compiles the json file into the built script twice, there needs to be...

It seems like this would a natural add to this library since one most probably stats a file before trying to read it. `fs.statSync` would eg. enable [`sheetify`](https://github.com/stackcss/sheetify) to require...