Skip to content

Commit

Permalink
chore: update readme (#232)
Browse files Browse the repository at this point in the history
* chore: update readme

* README adjusts

---------

Co-authored-by: Marcelo Shima <marceloshima@gmail.com>
  • Loading branch information
HomyeeKing and mshima committed Oct 16, 2023
1 parent 472c0ed commit e1d0bfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ File edition helpers working on top of [mem-fs](https://github.com/SBoudrias/mem

```js
import { create as createMemFs } from 'mem-fs';
import editor from 'mem-fs-editor';
import { create as createEditor } from 'mem-fs-editor';

const store = createMemFs();
const fs = editor.create(store);
const fs = createEditor(store);

fs.write('somefile.js', 'var a = 1;');
await fs.commit()
```

### `#read(filepath, [options])`
Expand Down

0 comments on commit e1d0bfe

Please sign in to comment.