1.0.0 • Published 8 months ago

dirpi v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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
1.0.0

8 months ago