motion
Version:
motion - moving development forward
97 lines (96 loc) • 5.98 kB
JSON
{
"_args": [
[
"normalize-path@https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "normalize-path@>=2.0.1 <3.0.0",
"_id": "normalize-path@2.0.1",
"_inCache": true,
"_location": "/normalize-path",
"_phantomChildren": {},
"_requested": {
"name": "normalize-path",
"raw": "normalize-path@https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz",
"rawSpec": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/micromatch"
],
"_resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz",
"_shasum": "47886ac1662760d4261b7d979d241709d3ce3f7a",
"_shrinkwrap": null,
"_spec": "normalize-path@https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": {
"url": "https://github.com/jonschlinkert/normalize-path/issues"
},
"dependencies": {},
"description": "Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes.",
"devDependencies": {
"benchmarked": "^0.1.1",
"minimist": "^1.2.0",
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/jonschlinkert/normalize-path",
"keywords": [
"backslash",
"file",
"filepath",
"fix",
"forward",
"fp",
"fs",
"normalize",
"path",
"slash",
"slashes",
"trailing",
"unix",
"urix"
],
"license": "MIT",
"main": "index.js",
"name": "normalize-path",
"optionalDependencies": {},
"readme": "# normalize-path [](http://badge.fury.io/js/normalize-path) [](https://travis-ci.org/jonschlinkert/normalize-path)\n\n> Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i normalize-path --save\n```\n\n## Usage\n\n```js\nvar normalize = require('normalize-path');\n\nnormalize('\\\\foo\\\\bar\\\\baz\\\\');\n//=> '/foo/bar/baz'\n\nnormalize('./foo/bar/baz/');\n//=> './foo/bar/baz'\n```\n\nPass `false` as the last argument to **not** strip trailing slashes:\n\n```js\nnormalize('./foo/bar/baz/', false);\n//=> './foo/bar/baz/'\n\nnormalize('foo\\\\bar\\\\baz\\\\', false);\n//=> 'foo/bar/baz/'\n```\n\n## Related\n\nOther useful libraries for working with paths in node.js:\n\n* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path)\n* [ends-with](https://www.npmjs.com/package/ends-with): Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for… [more](https://www.npmjs.com/package/ends-with) | [homepage](https://github.com/jonschlinkert/ends-with)\n* [is-absolute](https://www.npmjs.com/package/is-absolute): Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)\n* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)\n* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Parse a filepath into an object. Falls back on the native node.js `path.parse` method if… [more](https://www.npmjs.com/package/parse-filepath) | [homepage](https://github.com/jonschlinkert/parse-filepath)\n* [path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with)\n* [path-segments](https://www.npmjs.com/package/path-segments): Get n specific segments of a file path, e.g. first 2, last 3, etc. | [homepage](https://github.com/jonschlinkert/path-segments)\n* [rewrite-ext](https://www.npmjs.com/package/rewrite-ext): Automatically re-write the destination extension of a filepath based on the source extension. e.g … [more](https://www.npmjs.com/package/rewrite-ext) | [homepage](https://github.com/jonschlinkert/rewrite-ext)\n* [unixify](https://www.npmjs.com/package/unixify): Convert Windows file paths to unix paths. | [homepage](https://github.com/jonschlinkert/unixify)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/normalize-path/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 17, 2015._",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/normalize-path.git"
},
"scripts": {
"test": "mocha"
},
"verb": {
"related": {
"description": "Other useful libraries for working with paths in node.js:",
"list": [
"contains-path",
"ends-with",
"is-absolute",
"is-relative",
"parse-filepath",
"path-ends-with",
"path-segments",
"rewrite-ext",
"unixify"
]
}
},
"version": "2.0.1"
}