Skip to content

Commit

Permalink
Update README.md (#221)
Browse files Browse the repository at this point in the history
Fixing the README file. since the commit function is not using callback anymore
  • Loading branch information
2roy999 authored May 29, 2023
1 parent ee2d022 commit 5518e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ Move/rename a file from the `from` path to the `to` path.

Returns `true` if a file exists. Returns `false` if the file is not found or deleted.

### `#commit([filters,] [stream,] callback)`
### `#commit([filters,] [stream,])`

Persist every changes made to files in the mem-fs store to disk.

If provided, `filters` is an array of TransformStream to be applied on a stream of vinyl files (like gulp plugins).
If provided, `stream` is a stream of vinyl files.

`callback` is called once the files are updated on disk.
returns promise that is resolved once the files are updated on disk.

### `#dump([cwd,] [filter])`

Expand Down

0 comments on commit 5518e6c

Please sign in to comment.