{"_id":"path-root-regex","_rev":"87466","name":"path-root-regex","description":"Regular expression for getting the root of a posix or windows filepath.","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:28:25.000Z","created":"2016-03-29T06:52:33.322Z","0.1.2":"2016-03-29T07:06:36.688Z","0.1.1":"2016-03-29T07:00:54.538Z","0.1.0":"2016-03-29T06:52:33.322Z"},"users":{"arteffeckt":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/path-root-regex.git"},"versions":{"0.1.2":{"name":"path-root-regex","description":"Regular expression for getting the root of a posix or windows filepath.","version":"0.1.2","homepage":"https://github.com/regexhq/path-root-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/path-root-regex.git"},"bugs":{"url":"https://github.com/regexhq/path-root-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["detect","expression","file","filepath","match","parse","path","regex","regexp","regular","root","test"],"verb":{"run":true,"toc":false,"layout":false,"tasks":["readme"],"plugins":["gulp-format-md"],"related":{"highlight":"path-root","list":["parse-filepath","is-absolute"]},"reflinks":["verb","path-root"],"lint":{"reflinks":true}},"gitHead":"0b80fcc033e8eb960696672ed9b3f0262db48933","_id":"path-root-regex@0.1.2","_shasum":"bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d","size":2241,"noattachment":false,"key":"/path-root-regex/-/path-root-regex-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-root-regex/download/path-root-regex-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/path-root-regex-0.1.2.tgz_1459235194182_0.15893458318896592"},"directories":{},"publish_time":1459235196688,"_cnpm_publish_time":1459235196688,"_hasShrinkwrap":false},"0.1.1":{"name":"path-root-regex","description":"Regular expression for getting the root of a posix or windows filepath.","version":"0.1.1","homepage":"https://github.com/regexhq/path-root-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/regexhq/path-root-regex.git"},"bugs":{"url":"https://github.com/regexhq/path-root-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["path","regex","root"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["path-root","parse-filepath","is-absolute"]},"reflinks":["verb","path-root"],"lint":{"reflinks":true}},"gitHead":"a50bd117756845ac4f50e3a9701b2ea0886742a5","_id":"path-root-regex@0.1.1","_shasum":"579b400298319eb9257e87e12677bb86032fa56d","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"579b400298319eb9257e87e12677bb86032fa56d","size":2303,"noattachment":false,"key":"/path-root-regex/-/path-root-regex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-root-regex/download/path-root-regex-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/path-root-regex-0.1.1.tgz_1459234853200_0.2849430066999048"},"directories":{},"publish_time":1459234854538,"_cnpm_publish_time":1459234854538,"_hasShrinkwrap":false},"0.1.0":{"name":"path-root-regex","description":"Regular expression for getting the root of a posix or windows filepath.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/path-root-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/path-root-regex.git"},"bugs":{"url":"https://github.com/jonschlinkert/path-root-regex/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"*"},"keywords":["path","regex","root"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"1a58ebffc342b33961b385b5d7a967ea4270b09e","_id":"path-root-regex@0.1.0","_shasum":"cede35e1b86cdc54eacd051dbe3da8ea1b8106b7","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"cede35e1b86cdc54eacd051dbe3da8ea1b8106b7","size":2131,"noattachment":false,"key":"/path-root-regex/-/path-root-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-root-regex/download/path-root-regex-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/path-root-regex-0.1.0.tgz_1459234351630_0.5177896595560014"},"directories":{},"publish_time":1459234353322,"_cnpm_publish_time":1459234353322,"_hasShrinkwrap":false}},"readme":"# path-root-regex [![NPM version](https://img.shields.io/npm/v/path-root-regex.svg?style=flat)](https://www.npmjs.com/package/path-root-regex) [![NPM downloads](https://img.shields.io/npm/dm/path-root-regex.svg?style=flat)](https://npmjs.org/package/path-root-regex) [![Build Status](https://img.shields.io/travis/regexhq/path-root-regex.svg?style=flat)](https://travis-ci.org/regexhq/path-root-regex)\n\n> Regular expression for getting the root of a posix or windows filepath.\n\nYou might also be interested in [path-root](https://github.com/jonschlinkert/path-root).\n\n## Usage\n\nThe module exposes a function that must be called to get the regex (modified from the split device regex in the node.js path module);\n\n```js\nvar pathRootRegex = require('path-root-regex');\n\nconsole.log(pathRootRegex() instanceof RegExp);\n//=> true\n```\n\nSee the [path-root](https://github.com/jonschlinkert/path-root) module for examples.\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\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-regex/issues/new).\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/regexhq/path-root-regex/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._","_attachments":{},"homepage":"https://github.com/regexhq/path-root-regex","bugs":{"url":"https://github.com/regexhq/path-root-regex/issues"},"license":"MIT"}