jiwonz/pathfs
v0.1.0 ·
luau-path + @lune/fs
lune-path-fs
luau-path + @lune/fs
Note
This library is based on luau-path by seaofvoices
Features
- Includes typed
luau-path
utility (now fully typed) - @lune/fs library but supports path objects (
AsPath
objects which include string andPath
objects) - Does not require
node
&npm
anymore since it includes built script ofluau-path
Installation
Install via git submodules
git submodule add
Usage
pathfs.writeFile("something.json", "{ \"message\": \"Hello, world!\" }")
local path = pathfs.Path.from("something.json")
print(pathfs.readFile(path))