Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes unless disabled.
Install with npm:
$ npm install --save normalize-path
var normalize = ;;//=> '/foo/bar/baz';//=> './foo/bar/baz'
false as the last argument to keep trailing slashes:
;//=> './foo/bar/baz/';//=> 'foo/bar/baz/'
trueif the given
suffixusing strict equality for… more | homepage
path.isAbolute. Returns true if a file path is absolute. | homepage
trueif the path appears to be relative. | homepage
path.parse, parses a filepath into an object. | homepage
trueif a file path ends with the given string/suffix. | homepage
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
This file was generated by verb-generate-readme, v0.4.3, on March 29, 2017.