Skip to content

pea723/JS-filewatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-filewatcher

Demonstrate file watching by JS relying on Native File API(debut on Chrome 78).

Requirement

  • Chrome 78 installed (only beta version exists at the time of writing).
  • Native File API enabled (enable it from here).

See https://developers.google.com/web/updates/2019/08/native-file-system#read-file for more information.

How it works

This get entries in selected directory every seconds once you hit the button, select the directory and let Chrome access to it. Every files in the directory are treated as File, so that you can read the content by using FileReader. You can check this by clicking name of the file listed in the middle of the page.

About

Demonstrate local directory watching.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published