UNPKG

layaair2-cmd

Version:

layaair version 2 toolkit

126 lines (125 loc) 5.79 kB
{ "_args": [ [ { "raw": "unc-path-regex@^0.1.2", "scope": null, "escapedName": "unc-path-regex", "name": "unc-path-regex", "rawSpec": "^0.1.2", "spec": ">=0.1.2 <0.2.0", "type": "range" }, "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\is-unc-path" ] ], "_from": "unc-path-regex@>=0.1.2 <0.2.0", "_id": "unc-path-regex@0.1.2", "_inCache": true, "_location": "/unc-path-regex", "_nodeVersion": "5.8.0", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/unc-path-regex-0.1.2.tgz_1460256703094_0.4246507475618273" }, "_npmUser": { "name": "tunnckocore", "email": "mameto_100@mail.bg" }, "_npmVersion": "3.8.5", "_phantomChildren": {}, "_requested": { "raw": "unc-path-regex@^0.1.2", "scope": null, "escapedName": "unc-path-regex", "name": "unc-path-regex", "rawSpec": "^0.1.2", "spec": ">=0.1.2 <0.2.0", "type": "range" }, "_requiredBy": [ "/is-unc-path" ], "_resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "_shasum": "e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa", "_shrinkwrap": null, "_spec": "unc-path-regex@^0.1.2", "_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\is-unc-path", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/regexhq/unc-path-regex/issues" }, "dependencies": {}, "description": "Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.", "devDependencies": { "mocha": "*" }, "directories": {}, "dist": { "shasum": "e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa", "tarball": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "8962715152d8438fac975f90ac218017b41fea20", "homepage": "https://github.com/regexhq/unc-path-regex", "keywords": [ "absolute", "expression", "file", "filepath", "match", "matching", "path", "regex", "regexp", "regular", "unc", "win", "windows" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" }, { "name": "tunnckocore", "email": "mameto_100@mail.bg" } ], "name": "unc-path-regex", "optionalDependencies": {}, "readme": "# unc-path-regex [![NPM version](https://badge.fury.io/js/unc-path-regex.svg)](http://badge.fury.io/js/unc-path-regex) [![Build Status](https://travis-ci.org/jonschlinkert/unc-path-regex.svg)](https://travis-ci.org/jonschlinkert/unc-path-regex)\n\n> Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.\n\nVisit the MSDN reference for [Common Data Types 2.2.57 UNC](https://msdn.microsoft.com/en-us/library/gg465305.aspx) for more information about UNC paths.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i unc-path-regex --save\n```\n\n## Usage\n\n```js\n// unc-path-regex returns a function\nvar regex = require('unc-path-regex')();\n```\n\n**true**\n\nReturns true for windows UNC paths:\n\n```js\nregex.test('\\\\/foo/bar');\nregex.test('\\\\\\\\foo/bar');\nregex.test('\\\\\\\\foo\\\\admin$');\nregex.test('\\\\\\\\foo\\\\admin$\\\\system32');\nregex.test('\\\\\\\\foo\\\\temp');\nregex.test('\\\\\\\\/foo/bar');\nregex.test('\\\\\\\\\\\\/foo/bar');\n```\n\n**false**\n\nReturns false for non-UNC paths:\n\n```js\nregex.test('/foo/bar');\nregex.test('/');\nregex.test('/foo');\nregex.test('/foo/');\nregex.test('c:');\nregex.test('c:.');\nregex.test('c:./');\nregex.test('c:./file');\nregex.test('c:/');\nregex.test('c:/file');\n```\n\n## Related projects\n\n* [dotfile-regex](https://github.com/regexps/dotfile-regex): Regular expresson for matching dotfiles.\n* [dotdir-regex](https://github.com/regexps/dotdir-regex): Regex for matching dot-directories, like `.git/`\n* [dirname-regex](https://github.com/regexps/dirname-regex): Regular expression for matching the directory part of a file path.\n* [is-unc-path](https://github.com/jonschlinkert/is-unc-path): Returns true if a filepath is a windows UNC file path.\n* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.\n* [path-regex](https://github.com/regexps/path-regex): Regular expression for matching the parts of a file path.\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/unc-path-regex/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 July 07, 2015._", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/regexhq/unc-path-regex.git" }, "scripts": { "test": "mocha" }, "verb": { "related": { "list": [ "dotfile-regex", "is-unc-path", "unc-path-regex", "dotdir-regex", "path-regex", "dirname-regex", "is-glob" ] } }, "version": "0.1.2" }