# @lyo/file-system

A browser-compatible version of [file-system](https://www.npmjs.com/package/file-system) built automatically with [Lyo](https://github.com/bokub/lyo).

[![Version](https://flat.badgen.net/npm/v/@lyo/file-system)](https://www.npmjs.com/package/@lyo/file-system)
[![Build](https://bokub.github.io/lyo/badge-flat.svg)](https://www.npmjs.com/package/@lyo/file-system)
[![Hits](https://data.jsdelivr.com/v1/package/npm/@lyo/file-system/badge)](https://www.jsdelivr.com/package/npm/@lyo/file-system)

## Usage

#### In a browser
```html
<script src="https://cdn.jsdelivr.net/npm/@lyo/file-system"></script>

<script>
  fileSystem.fileMatch(foo, bar);
  fileSystem.mkdir(foo, bar, baz);
  fileSystem.mkdirSync(foo, bar);
  fileSystem.writeFile(foo, bar, baz, qux);
  fileSystem.writeFileSync(foo, bar, baz);
  fileSystem.copyFile(foo, bar, baz);
  fileSystem.copyFileSync(foo, bar, baz);
  fileSystem.recurse(foo, bar, baz);
  fileSystem.recurseSync(foo, bar, baz);
  fileSystem.rmdirSync(foo);
  fileSystem.copySync(foo, bar, baz);
</script>
```

#### In Node.js

```sh
# Install
npm i @lyo/file-system
```

```js
const fileSystem = require('@lyo/file-system')

fileSystem.fileMatch(foo, bar);
fileSystem.mkdir(foo, bar, baz);
fileSystem.mkdirSync(foo, bar);
fileSystem.writeFile(foo, bar, baz, qux);
fileSystem.writeFileSync(foo, bar, baz);
fileSystem.copyFile(foo, bar, baz);
fileSystem.copyFileSync(foo, bar, baz);
fileSystem.recurse(foo, bar, baz);
fileSystem.recurseSync(foo, bar, baz);
fileSystem.rmdirSync(foo);
fileSystem.copySync(foo, bar, baz);
```

## Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk