{
  "manifest": {
    "name": "common-path-prefix",
    "version": "3.0.0",
    "description": "Computes the longest prefix string that is common to each path, excluding the base component",
    "main": "index.js",
    "files": [
      "index.d.ts",
      "index.js"
    ],
    "scripts": {
      "test": "standard && nyc ava"
    },
    "repository": {
      "type": "git",
      "url": "git+https://github.com/novemberborn/common-path-prefix.git"
    },
    "author": {
      "name": "Mark Wubben",
      "url": "https://novemberborn.net/"
    },
    "license": "ISC",
    "bugs": {
      "url": "https://github.com/novemberborn/common-path-prefix/issues"
    },
    "homepage": "https://github.com/novemberborn/common-path-prefix#readme",
    "keywords": [
      "common",
      "path",
      "directory",
      "dir",
      "file",
      "root",
      "typescript",
      "common prefix",
      "common path",
      "common path start",
      "common root"
    ],
    "devDependencies": {
      "ava": "^2.3.0",
      "nyc": "^14.1.1",
      "standard": "^14.0.2"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-common-path-prefix-3.0.0-7d007a7e07c58c4b4d5f433131a19141b29f11e0-integrity/node_modules/common-path-prefix/package.json",
    "readmeFilename": "README.md",
    "readme": "# common-path-prefix\n\nComputes the longest prefix string that is common to each path, excluding the base component. Tested with Node.js 8 and above.\n\n## Installation\n\n```console\nnpm install common-path-prefix\n```\n\n## Usage\n\nThe module has one default export, the `commonPathPrefix` function:\n\n```js\nconst commonPathPrefix = require('common-path-prefix')\n```\n\nCall `commonPathPrefix()` with an array of paths (strings) and an optional separator character:\n\n```js\nconst paths = ['templates/main.handlebars', 'templates/_partial.handlebars']\n\ncommonPathPrefix(paths, '/') // returns 'templates/'\n```\n\nIf the separator is not provided the first `/` or `\\` found in any of the paths is used. Otherwise the platform-default value is used:\n\n```js\ncommonPathPrefix(['templates/main.handlebars', 'templates/_partial.handlebars']) // returns 'templates/'\ncommonPathPrefix(['templates\\\\main.handlebars', 'templates\\\\_partial.handlebars']) // returns 'templates\\\\'\n```\n\nYou can provide any separator, for example:\n\n```js\ncommonPathPrefix(['foo$bar', 'foo$baz'], '$') // returns 'foo$''\n```\n\nAn empty string is returned if no common prefix exists:\n\n```js\ncommonPathPrefix(['foo/bar', 'baz/qux']) // returns ''\ncommonPathPrefix(['foo/bar']) // returns ''\n```\n\nNote that the following *does* have a common prefix:\n\n```js\ncommonPathPrefix(['/foo/bar', '/baz/qux']) // returns '/'\n```\n",
    "licenseText": "ISC License (ISC)\nCopyright (c) 2016, Mark Wubben\n\nPermission to use, copy, modify, and/or distribute this software for any purpose\nwith or without fee is hereby granted, provided that the above copyright notice\nand this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\nOF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz",
    "hash": "7d007a7e07c58c4b4d5f433131a19141b29f11e0",
    "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==",
    "registry": "npm",
    "packageName": "common-path-prefix",
    "cacheIntegrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== sha1-fQB6fgfFjEtNX0MxMaGRQbKfEeA="
  },
  "registry": "npm",
  "hash": "7d007a7e07c58c4b4d5f433131a19141b29f11e0"
}