@wrote/wrote
v1.2.3
Published
The Collection Of The Methods To Work With The Filesystem.
Downloads
186
Readme
@wrote/wrote
@wrote/wrote
is The Collection Of The Methods To Work With The Filesystem.
yarn add -E @wrote/wrote
Table Of Contents
API
The package is available by importing its named functions:
import {
read, write, rm, ensurePath, readDirStructure,
readBuffer, exists,
} from '@wrote/wrote'
Packages
These packages are included in the meta-library.
| Method | Description | Package |
| ------------------ | ------------------------------------------------------------------- | ---------------------------------------------------------- |
| write
| Writes a file. | @wrote/write |
| read
| Reads a file. | @wrote/read |
| readBuffer
| Reads a file as a buffer. | @wrote/read |
| ensurePath
| Creates all directories on the way to the path. | @wrote/ensure-path |
| rm
| Removes a file or directory. | @wrote/rm |
| readDirStructure
| Reads a directory structure. | @wrote/rm |
| exists
| Checks if a file or directory exists and returns instance of Stats. | @wrote/exists |