UNPKG

@wrote/wrote

Version:

The Collection Of The Methods To Work With The Filesystem.

74 lines (57 loc) 3.2 kB
# @wrote/wrote [![npm version](https://badge.fury.io/js/%40wrote%2Fwrote.svg)](https://npmjs.org/package/@wrote/wrote) `@wrote/wrote` is The Collection Of The Methods To Work With The Filesystem. ```sh yarn add -E @wrote/wrote ``` ## Table Of Contents - [Table Of Contents](#table-of-contents) - [API](#api) - [Packages](#packages) - [Copyright](#copyright) <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/0.svg?sanitize=true"></a></p> ## API The package is available by importing its named functions: ```js import { read, write, rm, ensurePath, readDirStructure, readBuffer, exists, } from '@wrote/wrote' ``` <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/1.svg?sanitize=true"></a></p> ## Packages These packages are included in the meta-library. | Method | Description | Package | | ------------------ | ------------------------------------------------------------------- | ---------------------------------------------------------- | | `write` | Writes a file. | [@wrote/write](https://github.com/wrote/write) | | `read` | Reads a file. | [@wrote/read](https://github.com/wrote/read) | | `readBuffer` | Reads a file as a buffer. | [@wrote/read](https://github.com/wrote/read) | | `ensurePath` | Creates all directories on the way to the path. | [@wrote/ensure-path](https://github.com/wrote/ensure-path) | | `rm` | Removes a file or directory. | [@wrote/rm](https://github.com/wrote/rm) | | `readDirStructure` | Reads a directory structure. | [@wrote/rm](https://github.com/wrote/read-dir-structure) | | `exists` | Checks if a file or directory exists and returns instance of Stats. | [@wrote/exists](https://github.com/wrote/exists) | <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/2.svg?sanitize=true"></a></p> ## Copyright <table> <tr> <th> <a href="https://artd.eco"> <img src="https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png" alt="Art Deco" /> </a> </th> <th>© <a href="https://artd.eco">Art Deco</a> for <a href="https://wrote.cc">Wrote</a> 2019</th> <th> <a href="https://wrote.cc"> <img src="https://avatars3.githubusercontent.com/u/40831417?s=100" width="100" alt="Wrote" /> </a> </th> <th> <a href="https://www.technation.sucks" title="Tech Nation Visa"> <img src="https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif" alt="Tech Nation Visa" /> </a> </th> <th><a href="https://www.technation.sucks">Tech Nation Visa Sucks</a></th> </tr> </table> <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/-1.svg?sanitize=true"></a></p>