@lyo/file-system
v2.2.2
Published
Browser-compatible version of file-system
Downloads
6
Readme
@lyo/file-system
A browser-compatible version of file-system built automatically with Lyo.
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