0.1.0 • Published 7 years ago
@dogmalang/path v0.1.0
@dogmalang/path
Utilities for working with file and directory paths.
Developed in Dogma, compiled to JavaScript.
Engineered in Valencia, Spain, EU by Justo Labs.
dir()
Return the parent directory path:
fn dir(...path) : textbase()
Return the entry name, with extension if file:
fn base(...path) : textname()
Return the entry name, without extension if file:
fn name(...path) : textext()
Return the entry extension, with .:
fn ext(...path) : textjoin()
Join a path from multiple parts:
fn join(...path) : textnormalize()
Normalize a path, resolving .. and .:
fn normalize(...path) : text0.1.0
7 years ago