floader

1.0.1 • Public • Published

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);
});

Readme

Keywords

none

Package Sidebar

Install

npm i floader

Weekly Downloads

9

Version

1.0.1

License

MIT

Last publish

Collaborators

  • curvedmark