@lyo/file-system

2.2.2 • Public • Published

@lyo/file-system

A browser-compatible version of file-system built automatically with Lyo.

Version Build Hits

Usage

In a browser

<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

# Install
npm i @lyo/file-system
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

Readme

Keywords

none

Package Sidebar

Install

npm i @lyo/file-system

Weekly Downloads

5

Version

2.2.2

License

ISC

Unpacked Size

18.9 kB

Total Files

3

Last publish

Collaborators

  • lyo