dirpi
v1.0.0
Published
A Simple File Directory API
Downloads
1
Readme
DIRPI
- The Directory API
- Make Web FileSystem Simple
DOCS
- Currently only 2 functions exist
Intro
const { DirAPI } = require("dirpi")
const Dirapi = new DirAPI()
const data = Dirapi.read("./files") // Expected Output [{name: filename, path: pathofthefile , type: file type either file or dir, parent: parentdirectory}]
Dirapi.readStream(data[0].path) // creates a readStream for that file
Use Cases
- Could help with File Reading/Searching on backend Servers
- API Can be made for Files to read by other users