luau-path + @lune/fs and some utilities
pathfs.normalizePath
now acceptsAsPath
.- Rename
pathfs.normalizePath
topathfs.normalize
.
- Add some moonwave docs comments (not finished, docs soon)
- Add watch utilities (
pathfs.watchFile
,pathfs.watchDirectories
source credits to ffrostfall)
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.
- Features useful path and fs related utilities (such as
watchFile
,Directory
,diff
and more!)
Install via pesde
pesde add jiwonz/pathfs -t lune
local pathfs = require("../lune_packages/pathfs")
local fs = pathfs.fs -- compat with lune's fs lib (@lune/fs)
fs.writeFile("something.json", "{ \"message\": \"Hello, world!\" }")
local path = pathfs.Path.from("something.json")
print(fs.readFile(path))
- Generate markdown docs from moonwave comments for pesde docs