0.5.0 • Published 5 years ago

memory-fs v0.5.0

Weekly downloads
21,728,361
License
MIT
Repository
github
Last release
5 years ago

memory-fs

A simple in-memory filesystem. Holds data in a javascript object.

var MemoryFileSystem = require("memory-fs");
var fs = new MemoryFileSystem(); // Optionally pass a javascript object

fs.mkdirpSync("/a/test/dir");
fs.writeFileSync("/a/test/dir/file.txt", "Hello World");
fs.readFileSync("/a/test/dir/file.txt"); // returns Buffer("Hello World")

// Async variants too
fs.unlink("/a/test/dir/file.txt", function(err) {
	// ...
});

fs.readdirSync("/a/test"); // returns ["dir"]
fs.statSync("/a/test/dir").isDirectory(); // returns true
fs.rmdirSync("/a/test/dir");

fs.mkdirpSync("C:\\use\\windows\\style\\paths");

License

Copyright (c) 2012-2014 Tobias Koppers

MIT (http://www.opensource.org/licenses/mit-license.php)

@bufang/skeleton-webpack-plugin@openbaseio/package-build-statsbrscomponennentt@react-ssr/core@saasxx/cli-service@sooha/clivuedragdropuploadimagesjautodevbundleucpa-packagesverdaccio-memoryanchenkoa-vue-rendereroc-template-fiba-react-compileroc-template-react-custom-compilerdowebtempfix-for-version-one-point-one-point-three@arisageha/react-lazyload@arisageha/react-lazyload-fixnuxt-compactnuxt2webpack-passive-middlewarebb-chat@faable/fserv@frxf/frxf@texttree/demo-bsa-reference-rclalex-d.jsalgect@fundefund/funde_ck@leizciw/test-guacamole-uigql_din_modhexidave-aspnet-webpackoc-template-react-compiler-dtoc-template-react-dt-compiler@l1nyanm1ng/react-picture-viewer@porker/webpack@cluth/react-buildercthpb-plugin-socialfront-serve-pluginssr-serve-pluginssr-base-yfjs4cytoscape@infinitebrahmanuniverse/nolb-mem@playgrounds/serverpage-skeleton-j7@saaspe/components@everything-registry/sub-chunk-2154fis3-parser-webpack2tamanyan_nuxttarimatdksvg-mixer-utilssvesttest-carosello-campustest-miniprogramtest-hmrteadanteawind-autodll-webpack-pluginweex-diagnoseweex-vue-compilerwm-cliwinterestjsweb-playgroundvue-hervue-button-test1vue-cli-skeleton-webpack-pluginwebcompilerwebchewebpack-requirewebpack-watcherwebpack4dmallwebpack4lightwebpack_base420webtask-bundleweex-server-compilerwegawrapped-webpack-bundlerwwzwebpackx-vue-jswhale-docgen-in-browserwx-smixiaoliang2233angularcliservueserverless-functionssamc2samc3samc4samc5sam-carouselsandbox-test-serverscoutfileshipp-serverrequire-bundlerequire-browserresponsive-react-appream-corereactor-serverreact-websocketsrld-webpackredui-packersupercluster-googlemaps-adapter-clones
0.5.0

5 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

9 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago