{"_id":"unc-path-regex","_rev":"27599","name":"unc-path-regex","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.","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"time":{"modified":"2021-06-03T10:03:02.000Z","created":"2015-07-07T14:25:00.416Z","0.1.2":"2016-04-10T02:51:44.090Z","0.1.1":"2015-07-07T14:35:21.552Z","0.1.0":"2015-07-07T14:25:00.416Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/unc-path-regex.git"},"versions":{"0.1.2":{"name":"unc-path-regex","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.","version":"0.1.2","homepage":"https://github.com/regexhq/unc-path-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/unc-path-regex.git"},"bugs":{"url":"https://github.com/regexhq/unc-path-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["absolute","expression","file","filepath","match","matching","path","regex","regexp","regular","unc","win","windows"],"verb":{"related":{"list":["dotfile-regex","is-unc-path","unc-path-regex","dotdir-regex","path-regex","dirname-regex","is-glob"]}},"gitHead":"8962715152d8438fac975f90ac218017b41fea20","_id":"unc-path-regex@0.1.2","_shasum":"e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa","size":2206,"noattachment":false,"key":"/unc-path-regex/-/unc-path-regex-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unc-path-regex/download/unc-path-regex-0.1.2.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/unc-path-regex-0.1.2.tgz_1460256703094_0.4246507475618273"},"directories":{},"publish_time":1460256704090,"_cnpm_publish_time":1460256704090,"_hasShrinkwrap":false},"0.1.1":{"name":"unc-path-regex","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.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/unc-path-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unc-path-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/unc-path-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["absolute","expression","file","filepath","match","matching","path","regex","regexp","regular","unc","win","windows"],"verb":{"related":{"list":["dotfile-regex","is-unc-path","unc-path-regex","dotdir-regex","path-regex","dirname-regex","is-glob"]}},"_id":"unc-path-regex@0.1.1","_shasum":"d31b790d0c474579441f1fbf954801f626b73fe0","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"d31b790d0c474579441f1fbf954801f626b73fe0","size":2167,"noattachment":false,"key":"/unc-path-regex/-/unc-path-regex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unc-path-regex/download/unc-path-regex-0.1.1.tgz"},"directories":{},"publish_time":1436279721552,"_cnpm_publish_time":1436279721552,"_hasShrinkwrap":false},"0.1.0":{"name":"unc-path-regex","description":"Returns true if a filepath is a windows UNC file path.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/unc-path-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unc-path-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/unc-path-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"_id":"unc-path-regex@0.1.0","_shasum":"addc1177e13fcc61bc108af5122492c0c0c50f9c","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"addc1177e13fcc61bc108af5122492c0c0c50f9c","size":2008,"noattachment":false,"key":"/unc-path-regex/-/unc-path-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unc-path-regex/download/unc-path-regex-0.1.0.tgz"},"directories":{},"publish_time":1436279100416,"_cnpm_publish_time":1436279100416,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/regexhq/unc-path-regex","bugs":{"url":"https://github.com/regexhq/unc-path-regex/issues"},"license":"MIT"}