imemfs, modified and improved from, memory-fs
Modified an improved filesystem, original https://npmjs.org/memory-fs
Added:
* Symbolic links
* FileSystem mounting ^1
* FileSystem exporting in base64
* Filesystem importing of base64 encoded imemfs filesystem
Removed:
* aSync versions of commands (will return soon)
Changed:
* rmdirSync & unlinkSync can now override mount/symlink protection with `override` parameter set to `true`
* writeFileSync has optional encoding of `meta` for support of importing imemfs folder objects (used for mounts and symlinks)
var imemfs=;var fs=; fs; //* Creates a symbolic link// fs.symlink("/folder_from","/path/to/new/folder"); - /path/to/new/folder/lets_go = /folder_from/lets_gofs; //* Removes a symbolic linkfs; //* Mounts another FileSystem objectfs; //* Unmounts a FileSystem mount pointfs; //~ Returns the raw object of a file/folderfs; // Checks if file/folder existsfs; //- Returns stats on a pathfs; //* Exports the FileSystem in base64fs; //* Imports a base64 encoded FileSystemfs; // Reads a filefs; // Reads a directory listingfs; // Cretes directory and all parent directoriesfs; // Create a directory if parent directory existsfs; //~ Removes a directoryfs; //~ Removes a filefs; //~ Creates and/or Writes a file * New methods created by me~ Modified from original method- Soon to be removed/redesigned method
^1 Other imemfs filesystems supported only
License
Copyright (c) 2012-2014 Tobias Koppers
MIT (http://www.opensource.org/licenses/mit-license.php)