0.0.10 • Published 6 years ago

@wessberg/pathutil v0.0.10

Weekly downloads
49
License
MIT
Repository
github
Last release
6 years ago

PathUtil

NPM version License-mit

A helper class for working with paths.

Installation

Simply do: npm install @wessberg/pathutil.

Usage

const pathUtil = new PathUtil();
pathUtil.hasExtension("foo/bar.ts"); // true
pathUtil.clearExtension("foo/bar.ts"); // foo/bar
pathUtil.isLib("path"); // true
pathUtil.makeRelative("./foo/bar/baz.ts", "./foo/bar.ts"); // "../bar.ts"