js-slave-file

A slave who can manage file

Usage no npm install needed!

<script type="module">
  import jsSlaveFile from 'https://cdn.skypack.dev/js-slave-file';
</script>

README

js-slave-file

dependencies status dev-dependencies status

This slave manage file on the system.

Available events

fileCreated

Trigger when a file is created

Parameters
name descripion type
path The path where we have to watch for new created file String
Returned values
name descripion type
filename The name of the new created file String
path The path where the file has been created String

fileModified

Trigger when a file is modified

Parameters
name descripion type
path The path where we have to watch for new modified file String
Returned values
name descripion type
filename The name of the new modified file String
path The path where the file has been modified String