floader

File reading utility, Browserify aware

floader

File reading utility, Browserify aware.

Use fs.readFile when directly required. Use XHR when being browserified.

npm install floader
var loader = require('floader');
loader.load('/path/to/file', function (errcontent) {
    console.log(content);
});