luau-path + @lune/fs
- Rename
pathfs.getScriptPath
topathfs.script
. - Include missing license file in package.
This library is based on luau-path by seaofvoices
- 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 (now dependencyluau_path
is published to pesde!) - Includes runtime type checkers via greentea.
Install via pesde
pesde add jiwonz/pathfs -t lune
pathfs.writeFile("something.json", "{ \"message\": \"Hello, world!\" }")
local path = pathfs.Path.from("something.json")
print(pathfs.readFile(path))