The Collection Of The Methods To Work With The Filesystem.
npm install @wrote/wrote
@wrote/wrote is The Collection Of The Methods To Work With The Filesystem.
``sh`
yarn add -E @wrote/wrote
- Table Of Contents
- API
- Packages
- Copyright
The package is available by importing its named functions:
`js`
import {
read, write, rm, ensurePath, readDirStructure,
readBuffer, exists,
} from '@wrote/wrote'
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 |
|
![]() | © Art Deco for Wrote 2019 | alt="Tech Nation Visa" /> | Tech Nation Visa Sucks |
|---|