xhrfs

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i xhrfs

Weekly Downloads

8

Version

0.0.2

License

MIT

Last publish

Collaborators

  • erik.brinkman