# xhrfs **Repository Path**: mirrors_erikbrinkman/xhrfs ## Basic Information - **Project Name**: xhrfs - **Description**: A small wrapper around readFile* but using XHR - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 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 ```