Skip to content

Commit

Permalink
Merge pull request #1028 from streamich/dependencies
Browse files Browse the repository at this point in the history
Use package dependencies
  • Loading branch information
streamich committed Apr 27, 2024
2 parents adc6570 + 0dfd7bb commit e5461ae
Show file tree
Hide file tree
Showing 42 changed files with 60 additions and 3,198 deletions.
10 changes: 10 additions & 0 deletions docs/node/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ vol.writeFileSync('/foo', 'bar');
expect(vol.toJSON()).toEqual({ '/foo': 'bar' });
```

Construct new `memfs` volumes:

```js
import { memfs } from 'memfs';

const { fs, vol } = memfs({ '/foo': 'bar' });

fs.readFileSync('/foo', 'utf8'); // bar
```

Create as many filesystem volumes as you need:

```js
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,18 @@
}
},
"dependencies": {
"@jsonjoy.com/json-pack": "^1.0.2",
"@jsonjoy.com/util": "^1.1.0",
"sonic-forest": "^1.0.0",
"tslib": "^2.0.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@types/jest": "^29.0.0",
"@types/node": "^10.17.60",
"@types/mime": "^3.0.0",
"@types/node": "^10.17.60",
"app-root-path": "^3.1.0",
"assert": "^2.0.0",
"buffer": "^6.0.3",
Expand Down
4 changes: 2 additions & 2 deletions src/fsa-to-node/json.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CborEncoder } from '../json-joy/json-pack/cbor/CborEncoder';
import { CborDecoder } from '../json-joy/json-pack/cbor/CborDecoder';
import { CborEncoder } from '@jsonjoy.com/json-pack/lib/cbor/CborEncoder';
import { CborDecoder } from '@jsonjoy.com/json-pack/lib/cbor/CborDecoder';

export const encoder = new CborEncoder();
export const decoder = new CborDecoder();
11 changes: 0 additions & 11 deletions src/json-joy/json-pack/JsonPackExtension.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/json-joy/json-pack/JsonPackValue.ts

This file was deleted.

0 comments on commit e5461ae

Please sign in to comment.