{"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"keywords":["absolute","expression","file","filepath","is","match","matching","path","regex","regexp","regular","unc","win","windows"],"dist-tags":{"latest":"0.1.2"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"description":"Returns true if a filepath is a windows UNC file path.","readme":"# is-unc-path [![NPM version](https://img.shields.io/npm/v/is-unc-path.svg?style=flat)](https://www.npmjs.com/package/is-unc-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-unc-path.svg?style=flat)](https://npmjs.org/package/is-unc-path)  [![NPM total downloads](https://img.shields.io/npm/dt/is-unc-path.svg?style=flat)](https://npmjs.org/package/is-unc-path) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-unc-path.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-unc-path)\n\n> Returns true if a filepath is a windows UNC file path.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-unc-path\n```\n\n## Usage\n\n```js\nvar isUncPath = require('is-unc-path');\n```\n\n**true**\n\nReturns true for windows UNC paths:\n\n```js\nisUncPath('\\\\/foo/bar');\nisUncPath('\\\\\\\\foo/bar');\nisUncPath('\\\\\\\\foo\\\\admin\n\n**false**\n\nReturns false for non-UNC paths:\n\n```js\nisUncPath('/foo/bar');\nisUncPath('/');\nisUncPath('/foo');\nisUncPath('/foo/');\nisUncPath('c:');\nisUncPath('c:.');\nisUncPath('c:./');\nisUncPath('c:./file');\nisUncPath('c:/');\nisUncPath('c:/file');\n```\n\n**Customization**\n\nUse `.source` to use the regex as a component of another regex:\n\n```js\nvar myRegex = new RegExp(isUncPath.source + 'foo');\n```\n\n**[Rules for UNC paths](http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/sharing_tools_and_toolboxes/pathnames_explained_colon_absolute_relative_unc_and_url.htm)**\n\n* The computer name is always preceded by a double backward-slash (`\\\\`).\n* UNC paths cannot contain a drive letter (such as `D:`)\n\n## About\n\n### Related projects\n\n* [dirname-regex](https://www.npmjs.com/package/dirname-regex): Regular expression for matching the directory part of a file path. | [homepage](https://github.com/regexps/dirname-regex \"Regular expression for matching the directory part of a file path.\")\n* [dotdir-regex](https://www.npmjs.com/package/dotdir-regex): Regex for matching dot-directories, like `.git/` | [homepage](https://github.com/regexps/dotdir-regex \"Regex for matching dot-directories, like `.git/`\")\n* [dotfile-regex](https://www.npmjs.com/package/dotfile-regex): Regular expresson for matching dotfiles. | [homepage](https://github.com/regexps/dotfile-regex \"Regular expresson for matching dotfiles.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path \"Returns true if a filepath is a windows UNC file path.\")\n* [path-regex](https://www.npmjs.com/package/path-regex): Regular expression for matching the parts of a file path. | [homepage](https://github.com/regexps/path-regex \"Regular expression for matching the parts of a file path.\")\n* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex \"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\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && 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/is-unc-path/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 07, 2016._\n\n);\nisUncPath('\\\\foo\\admin$\\system32');\nisUncPath('\\\\foo\\temp');\nisUncPath('\\\\/foo/bar');\nisUncPath('\\\\\\/foo/bar');\n\n```\n**false**\n\nReturns false for non-UNC paths:\n\n```js\nisUncPath('/foo/bar');\nisUncPath('/');\nisUncPath('/foo');\nisUncPath('/foo/');\nisUncPath('c:');\nisUncPath('c:.');\nisUncPath('c:./');\nisUncPath('c:./file');\nisUncPath('c:/');\nisUncPath('c:/file');\n```\n\n**Customization**\n\nUse `.source` to use the regex as a component of another regex:\n\n```js\nvar myRegex = new RegExp(isUncPath.source + 'foo');\n```\n\n**[Rules for UNC paths](http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/sharing_tools_and_toolboxes/pathnames_explained_colon_absolute_relative_unc_and_url.htm)**\n\n* The computer name is always preceded by a double backward-slash (`\\\\`).\n* UNC paths cannot contain a drive letter (such as `D:`)\n\n## About\n\n### Related projects\n\n* [dirname-regex](https://www.npmjs.com/package/dirname-regex): Regular expression for matching the directory part of a file path. | [homepage](https://github.com/regexps/dirname-regex \"Regular expression for matching the directory part of a file path.\")\n* [dotdir-regex](https://www.npmjs.com/package/dotdir-regex): Regex for matching dot-directories, like `.git/` | [homepage](https://github.com/regexps/dotdir-regex \"Regex for matching dot-directories, like `.git/`\")\n* [dotfile-regex](https://www.npmjs.com/package/dotfile-regex): Regular expresson for matching dotfiles. | [homepage](https://github.com/regexps/dotfile-regex \"Regular expresson for matching dotfiles.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path \"Returns true if a filepath is a windows UNC file path.\")\n* [path-regex](https://www.npmjs.com/package/path-regex): Regular expression for matching the parts of a file path. | [homepage](https://github.com/regexps/path-regex \"Regular expression for matching the parts of a file path.\")\n* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex \"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\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && 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/is-unc-path/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 07, 2016._","repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-unc-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-unc-path/issues"},"license":"MIT","versions":{"0.1.1":{"name":"is-unc-path","description":"Returns true if a filepath is a windows UNC file path.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/is-unc-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-unc-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-unc-path/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["absolute","expression","file","filepath","match","matching","path","regex","regexp","regular","unc","win","windows"],"dependencies":{"unc-path-regex":"^0.1.0"},"_id":"is-unc-path@0.1.1","_shasum":"ab2533d77ad733561124c3dc0f5cd8b90054c86b","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ab2533d77ad733561124c3dc0f5cd8b90054c86b","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/is-unc-path/-/is-unc-path-0.1.1.tgz"},"directories":{}},"0.1.2":{"name":"is-unc-path","description":"Returns true if a filepath is a windows UNC file path.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/is-unc-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-unc-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-unc-path/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"unc-path-regex":"^0.1.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"*"},"keywords":["absolute","expression","file","filepath","is","match","matching","path","regex","regexp","regular","unc","win","windows"],"verb":{"related":{"list":["dirname-regex","dotdir-regex","dotfile-regex","is-glob","is-unc-path","path-regex","unc-path-regex"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-generate-readme"]},"gitHead":"dd26cfd8f7774130f36862dfe1c16e787cb21533","_id":"is-unc-path@0.1.2","_shasum":"6ab053a72573c10250ff416a3814c35178af39b9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6ab053a72573c10250ff416a3814c35178af39b9","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/is-unc-path/-/is-unc-path-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-unc-path-0.1.2.tgz_1481094386691_0.525543796364218"},"directories":{}}},"name":"is-unc-path","time":{"modified":"2016-12-07T07:06:27.423Z","created":"2015-07-07T14:32:31.867Z","0.1.1":"2015-07-07T14:32:31.867Z","0.1.2":"2016-12-07T07:06:27.423Z"},"readmeFilename":"README.md","homepage":"https://github.com/jonschlinkert/is-unc-path"}