{
  "_id": "path-root-regex",
  "maintainers": [
    {
      "name": "jonschlinkert",
      "email": "github@sellside.com"
    }
  ],
  "keywords": [
    "detect",
    "expression",
    "file",
    "filepath",
    "match",
    "parse",
    "path",
    "regex",
    "regexp",
    "regular",
    "root",
    "test"
  ],
  "dist-tags": {
    "latest": "0.1.2"
  },
  "author": {
    "name": "Jon Schlinkert",
    "url": "https://github.com/jonschlinkert"
  },
  "_rev": "6-82dc2eb027987b112353c2044ac6d7df",
  "description": "Regular expression for getting the root of a posix or windows filepath.",
  "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._",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/regexhq/path-root-regex.git"
  },
  "users": {
    "arteffeckt": true
  },
  "bugs": {
    "url": "https://github.com/regexhq/path-root-regex/issues"
  },
  "license": "MIT",
  "versions": {
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/path-root-regex/-/path-root-regex-0.1.0.tgz",
        "integrity": "sha512-Gc4ro5jl/+KaEYwUKVNBYz4wiFsD82lnwsl4joPOma6tmtiRu3N/FAaqVLAECu7U9MlZvUaQLggA1jhYodDAqw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCp/aNr1HFvmRo+6ypkEy8eMP4+xozstakqLQO+s+l1HAIhAK1UgIDL39MqKRpvVbgaxx0OrLoNIBVB7Kgd6sHWqrVl"
          }
        ]
      },
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/path-root-regex-0.1.0.tgz_1459234351630_0.5177896595560014"
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/path-root-regex/-/path-root-regex-0.1.1.tgz",
        "integrity": "sha512-Oc5s54jomX5k0URmzOdBIdjSbWF3cTVICNsy3qGQnhwWhQSMnkFm3Hweb2gm1Rrrh6e0oPX/uf7bpccc4AWCAg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIClF7PcydUTU9DLkPstO5WLp4m8EfpyfAElMdXufjY4HAiAPT7Ph4Whe0T5xnRJbh4TM95JfnZ2GnAmhhHMO1ES0Aw=="
          }
        ]
      },
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/path-root-regex-0.1.1.tgz_1459234853200_0.2849430066999048"
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/path-root-regex/-/path-root-regex-0.1.2.tgz",
        "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCM0cRMsTMwRsGROOK1D91B2Q3c0dgVGmyruviRhhDUCgIgZ4YXUOy9fA0FbQM9QA5K0fCV0LlzCS8ZrV+hXVNpOao="
          }
        ]
      },
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/path-root-regex-0.1.2.tgz_1459235194182_0.15893458318896592"
      }
    }
  },
  "name": "path-root-regex",
  "time": {
    "modified": "2026-05-20T15:56:40.272Z",
    "created": "2016-03-29T06:52:33.322Z",
    "0.1.0": "2016-03-29T06:52:33.322Z",
    "0.1.1": "2016-03-29T07:00:54.538Z",
    "0.1.2": "2016-03-29T07:06:36.688Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/regexhq/path-root-regex"
}