Socket
Socket
Sign inDemoInstall

memfs

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memfs - npm Package Compare versions

Comparing version 2.5.10 to 2.6.0

8

docs/relative-paths.md

@@ -6,7 +6,7 @@ # Relative paths

You can also use *relative* paths but the gotcha is that then `memfs` needs
to somehow resolve those relative paths to absolute paths. `memfs` will use
the value of `process.cwd()` to resolve the absolute paths. The problem is
to somehow resolve those relative paths into absolute paths. `memfs` will use
the value of `process.cwd()` to resolve the relative paths. The problem is
that `process.cwd()` specifies the *current working directory* of your
on-disk filesystem and you will probably not have that directory available in
`memfs`.
on-disk filesystem and you will probably not have that directory available in your
`memfs` volume.

@@ -13,0 +13,0 @@ The best solution is to always use absolute paths. Alternatively, you can use

@@ -42,1 +42,2 @@ "use strict";

module.exports = __assign({}, module.exports, exports.fs);
module.exports.semantic = true;

@@ -1,70 +0,1 @@

{
"name": "memfs",
"version": "2.5.10",
"description": "In-memory file-system with Node's fs API.",
"main": "lib/index.js",
"keywords": [
"fs",
"filesystem",
"fs.js",
"memory-fs",
"memfs",
"file",
"file system",
"mount",
"memory",
"in-memory",
"virtual",
"test",
"testing",
"mock"
],
"repository": {
"type": "git",
"url": "https://github.com/streamich/memfs.git"
},
"dependencies": {
"fast-extend": "0.0.2",
"fs-monkey": "^0.2.1"
},
"devDependencies": {
"jest": "^21.1.0",
"jest-tap-reporter": "1.7.0",
"ts-jest": "^21.0.1",
"mocha": "3.4.2",
"chai": "4.1.0",
"typescript": "2.4.2",
"ts-node": "3.3.0",
"babel-cli": "6.24.1",
"babel-preset-es2015": "6.24.1",
"gulp": "3.9.1",
"gulp-typescript": "3.2.1",
"source-map-support": "0.4.15",
"nyc": "11.1.0",
"watch": "^1.0.0",
"@types/node": "8.0.17",
"@types/jest": "^21.1.1"
},
"scripts": {
"build": "npm run build-ts && npm run build-js",
"build-ts": "gulp build-ts",
"build-js": "babel src --out-dir lib",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"watch": "watch 'npm run build' ./src"
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": ".*/__tests__/.*\\.(test|spec)\\.(jsx?|tsx?)$",
"reporters": ["jest-tap-reporter"]
}
}
{"name":"memfs","version":"2.6.0","description":"In-memory file-system with Node's fs API.","main":"lib/index.js","keywords":["fs","filesystem","fs.js","memory-fs","memfs","file","file system","mount","memory","in-memory","virtual","test","testing","mock"],"repository":{"type":"git","url":"https://github.com/streamich/memfs.git"},"dependencies":{"fast-extend":"0.0.2","fs-monkey":"^0.2.1"},"devDependencies":{"jest":"^21.1.0","jest-tap-reporter":"1.7.0","ts-jest":"^21.0.1","mocha":"3.4.2","chai":"4.1.0","typescript":"2.4.2","ts-node":"3.3.0","babel-cli":"6.24.1","babel-preset-es2015":"6.24.1","gulp":"3.9.1","gulp-typescript":"3.2.1","source-map-support":"0.4.15","nyc":"11.1.0","watch":"^1.0.0","@types/node":"8.0.17","@types/jest":"^21.1.1","semantic-release":"^8.2.0"},"scripts":{"build":"npm run build-ts && npm run build-js","build-ts":"gulp build-ts","build-js":"babel src --out-dir lib","test":"jest","test:coverage":"jest --coverage","test:watch":"jest --watch","watch":"watch 'npm run build' ./src","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"jest":{"moduleFileExtensions":["ts","tsx","js","jsx"],"transform":{"^.+\\.tsx?$":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testRegex":".*/__tests__/.*\\.(test|spec)\\.(jsx?|tsx?)$"}}

@@ -7,3 +7,3 @@ # memfs 2.0

- 100% of Node's `fs` API implemented, see *API Status*
- 100% of Node's `fs` API implemented, see [*API Status*](./docs/api-status.md)
- Stores files in memory, in `Buffer`s

@@ -24,3 +24,3 @@ - Throws same* errors as Node.js

### Usage
## Usage

@@ -53,4 +53,4 @@ ```js

```js
vol.writeFileSync('/script.sh', '#! /bin/bash');
vol.toJSON(); // {"/script.sh": "#! /bin/bash"}
vol.writeFileSync('/script.sh', 'sudo rm -rf *');
vol.toJSON(); // {"/script.sh": "sudo rm -rf *"}
```

@@ -137,4 +137,4 @@

# License
## License
[Unlicense](./LICENSE) - public domain.

@@ -50,1 +50,3 @@ import {Stats} from './node';

module.exports = {...module.exports, ...fs};
module.exports.semantic = true;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc