Skip to content

jiwonz/lune-path-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lune-path-fs

luau-path + @lune/fs

v0.5.0

Changed

  • Rename pathfs.getScriptPath to pathfs.script.
  • Include missing license file in package.

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 (now dependency luau_path is published to pesde!)
  • Includes runtime type checkers via greentea.

Installation

Install via pesde

pesde add jiwonz/pathfs -t lune

Usage

pathfs.writeFile("something.json", "{ \"message\": \"Hello, world!\" }")

local path = pathfs.Path.from("something.json")

print(pathfs.readFile(path))

Releases

No releases published

Packages

No packages published

Languages