file-system-JS Promised based
File System for client side browser
Common functions
readFileAsDataURL(file);
readFile(file);
createFile(content, type, filename);
Minimal Example
<script src="fileSystem.js"></script>
<script>
var fs = new FileSystem();
//Using readFileAsDataURL(file)
fs.readFileAsDataURL("image.png")
.then(res => {
console.log(res);
})
</script>