jiwonz/pathfs
v0.2.2 ·
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 (now dependencyluau_path
is published to pesde!) - Includes runtime type checkers via greentea.
Installation
Install via pesde
pesde add jiwonz/pathfs
Usage
pathfs.writeFile("something.json", "{ \"message\": \"Hello, world!\" }")
local path = pathfs.Path.from("something.json")
print(pathfs.readFile(path))