xhrfs

v0.0.2
A small wrapper around readFile* but using XHR
browserify

Xhrfs

A small wrapper around readFile* but using XHR. This has pretty limited uses as local files can only be read from another local file with appropriate security flags set (e.g. --allow-file-access-from-files).

Usage

const fs = require('xhrfs');
fs.readFile('local_file', 'utf8', (err, content) => console.log(content));
console.log(fs.readFileSync('local_file', 'utf8'));

Installation

npm install xhrfs --save
npm i xhrfs

Metadata

  • MIT
  • Whatever
  • Erik Brinkman
  • released 8/10/2017

Downloads

Maintainers