root 3bf41bf355 update | hace 1 año | |
---|---|---|
.. | ||
LICENSE | hace 1 año | |
README.md | hace 1 año | |
index.js | hace 1 año | |
package.json | hace 1 año |
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 = require('normalize-path');
normalize('\\foo\\bar\\baz\\');
//=> '/foo/bar/baz'
normalize('./foo/bar/baz/');
//=> './foo/bar/baz'
Pass false
as the last argument to keep trailing slashes:
normalize('./foo/bar/baz/', false);
//=> './foo/bar/baz/'
normalize('foo\\bar\\baz\\', false);
//=> 'foo/bar/baz/'
true
if the given string
or array
ends with suffix
using strict equality for… more | homepagepath.isAbolute
. Returns true if a file path is absolute. | homepagetrue
if the path appears to be relative. | homepagepath.parse
, parses a filepath into an object. | homepagetrue
if a file path ends with the given string/suffix. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
| Commits | Contributor | | --- | --- | | 31 | jonschlinkert | | 1 | phated |
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
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
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.4.3, on March 29, 2017.