Skip to content

RobLoach/wren-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wren-path

Utility class for the Wren scripting language to work with file and directory paths.

Usage

import "path/to/wren-path/Path" for Path

Path.basename("path/to/something.txt") // => something.txt
Path.extname("something.txt") // => .txt
Path.isAbsolute("/path/to/something.txt") // => true
Path.dirname("/path/to/something.txt") // => /path/to
Path.normalize("path/to/other/../something.txt") // => path/to/something.txt

Testing

git submodule update --init
wren_cli test.wren

About

Work with file and directory paths in Wren.

Resources

License

Stars

Watchers

Forks

Packages

No packages published