Skip to content
Read file content
JavaScript
Find file
Latest commit 59455c0 @curvedmark 1.0.1
Failed to load latest commit information.
lib Set errno property on error object for browsers
test Initial commit
.gitignore Initial commit
LICENSE Initial commit
README.md Initial commit
package.json 1.0.1

README.md

floader

File reading utility, Browserify aware.

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

Installation

npm install floader

Example

var loader = require('floader');
loader.load('/path/to/file', function (err, content) {
    console.log(content);
});
Something went wrong with that request. Please try again.