jiwonz/pathfs

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 and Path objects)
  • Does not require node & npm anymore since it includes built script of luau-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))