All Projects → metarhia → sandboxed-fs

metarhia / sandboxed-fs

Licence: other
Sandboxed Wrapper for Node.js File System API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sandboxed-fs

MeowDB.js
Database in JSON (Node.JS Library)
Stars: ✭ 12 (-70.73%)
Mutual labels:  wrapper, filesystem, fs
gof
Yet another simple Go filesystem wrapper
Stars: ✭ 13 (-68.29%)
Mutual labels:  wrapper, filesystem, fs
common
Metarhia Common Library
Stars: ✭ 55 (+34.15%)
Mutual labels:  metarhia, impress
rxnode
Rxnode - a small and fast wrapper around the nodejs API using RxJS.
Stars: ✭ 24 (-41.46%)
Mutual labels:  filesystem, fs
gw
A Wrapper of a command to watch any changes in filesystem
Stars: ✭ 16 (-60.98%)
Mutual labels:  wrapper, filesystem
SharpPhysFS
Managed wrapper for the PhysFS library
Stars: ✭ 14 (-65.85%)
Mutual labels:  wrapper, filesystem
dropbox-fs
📦 Node FS wrapper for Dropbox
Stars: ✭ 35 (-14.63%)
Mutual labels:  filesystem, fs
do
Simplest way to manage asynchronicity
Stars: ✭ 33 (-19.51%)
Mutual labels:  metarhia, impress
Nohost
A web server in your web browser
Stars: ✭ 164 (+300%)
Mutual labels:  filesystem, fs
fu
Unix's Find, Unleashed.
Stars: ✭ 32 (-21.95%)
Mutual labels:  filesystem, fs
Example
Metarhia application example for Node.js
Stars: ✭ 147 (+258.54%)
Mutual labels:  metarhia, sandboxing
concolor
Colouring template strings using tags with annotations 🎨
Stars: ✭ 35 (-14.63%)
Mutual labels:  metarhia, impress
TLightFileStream
Implements a lightweight, high-performance, non-allocating advanced-record-based wrapper around the SysUtils file handling routines as an alternative to Classes.TFileStream.
Stars: ✭ 21 (-48.78%)
Mutual labels:  wrapper, filesystem
fs-fuse
Export any Node.js `fs`-like object as a FUSE filesystem
Stars: ✭ 32 (-21.95%)
Mutual labels:  filesystem, fs
Draxt
draxt.js – NodeList/jQuery-like package for File System (node.js)
Stars: ✭ 192 (+368.29%)
Mutual labels:  filesystem, fs
Contracts
Metarhia core docs and contracts specifications 📒
Stars: ✭ 26 (-36.59%)
Mutual labels:  metarhia, impress
Litfs
A FUSE file system in Go extended with persistent file storage
Stars: ✭ 116 (+182.93%)
Mutual labels:  filesystem, fs
Node Proper Lockfile
An inter-process and inter-machine lockfile utility that works on a local or network file system.
Stars: ✭ 139 (+239.02%)
Mutual labels:  filesystem, lock
tabfs-specs
Specifications for the tabfs filesystem (osdev) | Mirror of https://codeark.it/Chalk-OS/tabfs-specs
Stars: ✭ 15 (-63.41%)
Mutual labels:  filesystem, fs
unionfs
Use multiple fs modules at once
Stars: ✭ 170 (+314.63%)
Mutual labels:  filesystem, fs

sandboxed-fs

sandboxed-fs is a sandboxed wrapper for Node.js file system module implementing the same API but bound to a certain directory, reliably locked in it.

Usage

  • Install: npm install sandboxed-fs
  • Require: const fs = require('sandboxed-fs').bind(path);

Examples:

const fs = require('sandboxed-fs').bind(path);

fs.readFile('file.ext', (err, data) => {
  if (err) return console.log('Cannot read file');
});

fs.readFile('../../file.ext', (err, data) => {
  if (err) return console.log('Cannot read file');
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].