layaair2-cmd
Version:
layaair version 2 toolkit
126 lines (125 loc) • 5.88 kB
JSON
{
"_args": [
[
{
"raw": "path-root@^0.1.1",
"scope": null,
"escapedName": "path-root",
"name": "path-root",
"rawSpec": "^0.1.1",
"spec": ">=0.1.1 <0.2.0",
"type": "range"
},
"E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\parse-filepath"
]
],
"_from": "path-root@>=0.1.1 <0.2.0",
"_id": "path-root@0.1.1",
"_inCache": true,
"_location": "/path-root",
"_nodeVersion": "5.5.0",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/path-root-0.1.1.tgz_1459235666528_0.13938825554214418"
},
"_npmUser": {
"name": "jonschlinkert",
"email": "github@sellside.com"
},
"_npmVersion": "3.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "path-root@^0.1.1",
"scope": null,
"escapedName": "path-root",
"name": "path-root",
"rawSpec": "^0.1.1",
"spec": ">=0.1.1 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/parse-filepath"
],
"_resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz",
"_shasum": "9a4a6814cac1c0cd73360a95f32083c8ea4745b7",
"_shrinkwrap": null,
"_spec": "path-root@^0.1.1",
"_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\parse-filepath",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": {
"url": "https://github.com/jonschlinkert/path-root/issues"
},
"dependencies": {
"path-root-regex": "^0.1.0"
},
"description": "Get the root of a posix or windows filepath.",
"devDependencies": {
"gulp-format-md": "^0.1.7",
"mocha": "^2.4.5"
},
"directories": {},
"dist": {
"shasum": "9a4a6814cac1c0cd73360a95f32083c8ea4745b7",
"tarball": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "2f1a3929dece0f8bb645b8eb6123dd53f05cd503",
"homepage": "https://github.com/jonschlinkert/path-root",
"keywords": [
"path",
"root"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "jonschlinkert",
"email": "github@sellside.com"
}
],
"name": "path-root",
"optionalDependencies": {},
"readme": "# path-root [](https://www.npmjs.com/package/path-root) [](https://npmjs.org/package/path-root) [](https://travis-ci.org/jonschlinkert/path-root)\n\n> Get the root of a posix or windows filepath.\n\nYou might also be interested in [parse-filepath](https://github.com/jonschlinkert/parse-filepath).\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install path-root --save\n```\n\n## Usage\n\n```js\nvar pathRoot = require('path-root');\n```\n\n**Examples**\n\n```js\npathRoot('\\\\\\\\server\\\\share\\\\abc');\n//=> '\\\\\\\\server\\\\share\\\\'\n\npathRoot('\\\\\\\\server foo\\\\some folder\\\\base-file.js');\n//=> '\\\\\\\\server foo\\\\some folder\\\\'\n\npathRoot('\\\\\\\\?\\\\UNC\\\\server\\\\share');\n//=> '\\\\\\\\?\\\\UNC\\\\'\n\npathRoot('foo/bar/baz.js');\n//=> ''\n\npathRoot('c:\\\\foo\\\\bar\\\\baz.js');\n//=> 'c:\\\\'\n\npathRoot('\\\\\\\\slslslsl\\\\admin$\\\\system32');\n//=> '\\\\\\\\slslslsl\\\\admin$\\\\'\n\npathRoot('/foo/bar/baz.js');\n//=> '/'\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)\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-root-regex](https://www.npmjs.com/package/path-root-regex): Regular expression for getting the root of a posix or windows filepath. | [homepage](https://github.com/regexhq/path-root-regex)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/path-root/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\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 © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/path-root/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/path-root.git"
},
"scripts": {
"test": "mocha"
},
"verb": {
"run": true,
"toc": false,
"layout": "default",
"tasks": [
"readme"
],
"plugins": [
"gulp-format-md"
],
"related": {
"highlight": "parse-filepath",
"list": [
"path-root-regex",
"parse-filepath",
"is-absolute"
]
},
"reflinks": [
"verb"
],
"lint": {
"reflinks": true
}
},
"version": "0.1.1"
}