{"_id":"common-dir","_rev":"25751","name":"common-dir","description":"Returns the parent directory common to each path","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-03T10:02:30.000Z","created":"2014-06-08T09:05:35.848Z","3.0.1":"2021-03-13T22:13:37.388Z","3.0.0":"2019-10-21T23:35:59.291Z","2.0.2":"2018-05-12T23:33:56.093Z","1.0.1":"2016-12-06T11:56:55.172Z","1.0.0":"2016-02-13T21:16:16.038Z","0.1.4":"2014-07-02T11:57:22.484Z","0.1.3":"2014-06-13T20:57:32.426Z","0.1.2":"2014-06-11T00:15:39.752Z","0.1.1":"2014-06-08T12:35:35.139Z","0.1.0":"2014-06-08T09:05:35.848Z"},"users":{"jjdanois":true},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/common-dir.git"},"versions":{"3.0.1":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.1","description":"Returns the parent directory common to each path","repository":{"type":"git","url":"git+https://github.com/75lb/common-dir.git"},"keywords":["common","directory","parent","folder"],"license":"MIT","engines":{"node":">=8"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md"},"dependencies":{"common-sequence":"^2.0.0"},"devDependencies":{"jsdoc-to-markdown":"^7.0.0","test-runner":"^0.6.3"},"gitHead":"ce50ca2da8dbcbdd21f0d41dbc70098b29965d56","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir#readme","_id":"common-dir@3.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"shasum":"c328570baebd5a6afb929ba762e816d74742d979","size":1992,"noattachment":false,"key":"/common-dir/-/common-dir-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-3.0.1.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/common-dir_3.0.1_1615673617182_0.15855637003902645"},"_hasShrinkwrap":false,"publish_time":1615673617388,"_cnpm_publish_time":1615673617388},"3.0.0":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.0","description":"Returns the parent directory common to each path","repository":{"type":"git","url":"git+https://github.com/75lb/common-dir.git"},"keywords":["common","directory","parent","folder"],"license":"MIT","engines":{"node":">=8"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md"},"dependencies":{"common-sequence":"^2.0.0"},"devDependencies":{"jsdoc-to-markdown":"^5.0.2","test-runner":"^0.6.0"},"gitHead":"baf13cbcbfd24ab339b777641d222737d7a2a8c4","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir#readme","_id":"common-dir@3.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.12.0","dist":{"shasum":"37d92f4eb998ec95f67216f1a2059f40aae71736","size":1950,"noattachment":false,"key":"/common-dir/-/common-dir-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-3.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/common-dir_3.0.0_1571700959040_0.13065886290063222"},"_hasShrinkwrap":false,"publish_time":1571700959291,"_cnpm_publish_time":1571700959291},"2.0.2":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.2","description":"Returns the parent directory common to each path","repository":{"type":"git","url":"git+https://github.com/75lb/common-dir.git"},"keywords":["common","directory","parent","folder"],"license":"MIT","engines":{"node":">=4"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -t README.hbs index.js > README.md; echo"},"dependencies":{"common-sequence":"^1.0.2"},"devDependencies":{"jsdoc-to-markdown":"^4.0.1","test-runner":"^0.5.0"},"gitHead":"501382e13ae44a97eefa11a09b747cd740445d9f","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir#readme","_id":"common-dir@2.0.2","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"cfea16f48564a0ecbb088065fad029047f469dc1","size":2611,"noattachment":false,"key":"/common-dir/-/common-dir-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-2.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/common-dir_2.0.2_1526168035898_0.6367490598360399"},"_hasShrinkwrap":false,"publish_time":1526168036093,"_cnpm_publish_time":1526168036093},"1.0.1":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"git+https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","keywords":["common","directory","parent","folder"],"license":"MIT","engines":{"node":">=0.12.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"common-sequence":"^1.0.2"},"devDependencies":{"core-assert":"^0.2.1","jsdoc-to-markdown":"^2.0.1","test-runner":"^0.3.0"},"gitHead":"07988c55d9be12fd6d4a52c715e2f800d500d46e","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir#readme","_id":"common-dir@1.0.1","_shasum":"4fd872085ebc5f262d9cc23b0ff34b3e457677f0","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"4fd872085ebc5f262d9cc23b0ff34b3e457677f0","size":2743,"noattachment":false,"key":"/common-dir/-/common-dir-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/common-dir-1.0.1.tgz_1481025414442_0.6193366441875696"},"directories":{},"publish_time":1481025415172,"_cnpm_publish_time":1481025415172,"_hasShrinkwrap":false},"1.0.0":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"git+https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","keywords":["common","directory","parent","folder"],"license":"MIT","engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"array-tools":"^1.8.6"},"devDependencies":{"jsdoc-to-markdown":"^1.3.3","tape":"^4.4"},"gitHead":"d437bf1ea559fef88403adc2650b809976a7cb42","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir#readme","_id":"common-dir@1.0.0","_shasum":"9ba8a1734146173d76e2e6bd3d053e927b856fd2","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"9ba8a1734146173d76e2e6bd3d053e927b856fd2","size":2033,"noattachment":false,"key":"/common-dir/-/common-dir-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/common-dir-1.0.0.tgz_1455398174002_0.08151091844774783"},"directories":{},"publish_time":1455398176038,"_cnpm_publish_time":1455398176038,"_hasShrinkwrap":false},"0.1.4":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.4","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","keywords":["common","directory","parent","folder"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"array-tools":"^1.0.4"},"devDependencies":{"tape":"^2.13.2"},"gitHead":"1096feb332696bee41f39bdeb1a59db12cb1bf67","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir","_id":"common-dir@0.1.4","_shasum":"066a175c66dee2bbefc53c5f2c0e5b457383a3b2","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"066a175c66dee2bbefc53c5f2c0e5b457383a3b2","size":1971,"noattachment":false,"key":"/common-dir/-/common-dir-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-0.1.4.tgz"},"directories":{},"publish_time":1404302242484,"_cnpm_publish_time":1404302242484,"_hasShrinkwrap":false},"0.1.3":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.3","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","bin":{"common-dir":"bin/cli.js"},"keywords":["common","directory","parent","folder"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"array-tools":"^1.0.4"},"devDependencies":{"tape":"^2.13.2"},"gitHead":"90abe6f4d41df53c27038547ab5b12073c0a01c1","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir","_id":"common-dir@0.1.3","_shasum":"b01ccf192f656bb5983eb559b6ae8223f747b24f","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"b01ccf192f656bb5983eb559b6ae8223f747b24f","size":1917,"noattachment":false,"key":"/common-dir/-/common-dir-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-0.1.3.tgz"},"directories":{},"publish_time":1402693052426,"_cnpm_publish_time":1402693052426,"_hasShrinkwrap":false},"0.1.2":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.2","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","bin":{"common-dir":"bin/cli.js"},"keywords":["common","directory","parent","folder"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"array-ting":"^1.0.4"},"devDependencies":{"tape":"^2.13.2"},"gitHead":"f49731bc004bfb0edf3ca65e7bae2de4a150a246","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir","_id":"common-dir@0.1.2","_shasum":"1cccdf8d7e1e99cbe4e100fed922708b88d2c86d","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"1cccdf8d7e1e99cbe4e100fed922708b88d2c86d","size":1919,"noattachment":false,"key":"/common-dir/-/common-dir-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-0.1.2.tgz"},"directories":{},"publish_time":1402445739752,"_cnpm_publish_time":1402445739752,"_hasShrinkwrap":false},"0.1.1":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","bin":{"common-dir":"bin/cli.js"},"keywords":["common","directory","parent","folder"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"wodge":"^0.8.1"},"devDependencies":{"tape":"^2.13.2"},"gitHead":"7f2c8f832d140641c2af12539476b905e37f8f9f","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir","_id":"common-dir@0.1.1","_shasum":"c43003d0cbb8efb93d8b79907b22f4f8021fc56a","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"c43003d0cbb8efb93d8b79907b22f4f8021fc56a","size":1952,"noattachment":false,"key":"/common-dir/-/common-dir-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-0.1.1.tgz"},"directories":{},"publish_time":1402230935139,"_cnpm_publish_time":1402230935139,"_hasShrinkwrap":false},"0.1.0":{"name":"common-dir","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"returns the parent directory common to each path in the list","repository":{"type":"git","url":"https://github.com/75lb/common-dir.git"},"main":"./lib/common-dir.js","bin":{"common-dir":"bin/cli.js"},"keywords":["common","directory","parent","folder"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"wodge":"^0.8.1"},"devDependencies":{"tape":"^2.13.2"},"gitHead":"34d74672eed8622367cbc6b5c589d24d06a2cbf7","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"homepage":"https://github.com/75lb/common-dir","_id":"common-dir@0.1.0","_shasum":"ee1397611f44049cb131a0caecfaf1eed308856d","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"dist":{"shasum":"ee1397611f44049cb131a0caecfaf1eed308856d","size":2033,"noattachment":false,"key":"/common-dir/-/common-dir-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/common-dir/download/common-dir-0.1.0.tgz"},"directories":{},"publish_time":1402218335848,"_cnpm_publish_time":1402218335848,"_hasShrinkwrap":false}},"readme":"[![view on npm](https://badgen.net/npm/v/common-dir)](https://www.npmjs.org/package/common-dir)\n[![npm module downloads](https://badgen.net/npm/dt/common-dir)](https://www.npmjs.org/package/common-dir)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/common-dir)](https://github.com/75lb/common-dir/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/common-dir)](https://github.com/75lb/common-dir/network/dependents?dependent_type=PACKAGE)\n[![Build Status](https://travis-ci.org/75lb/common-dir.svg?branch=master)](https://travis-ci.org/75lb/common-dir)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_common-dir\"></a>\n\n## common-dir\n<a name=\"exp_module_common-dir--commonDir\"></a>\n\n### commonDir(files) ⇒ <code>string</code> ⏏\nReturns the parent directory common to each path.\n\n**Kind**: Exported function  \n**Returns**: <code>string</code> - A single path ending with the path separator, e.g. '/user/some/folder/'  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| files | <code>Array</code> | An array of file paths to inspect |\n\n**Example**  \n```js\n> const commonDir = require('common-dir')\n> files = [\n  '/Users/75lb/one/package.json',\n  '/Users/75lb/one/test',\n  '/Users/75lb/two/test/main.js'\n]\n> commonDir(files)\n'/Users/75lb/'\n```\n\n* * *\n\n&copy; 2014-21 Lloyd Brookes <75pound@gmail.com>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/common-dir#readme","bugs":{"url":"https://github.com/75lb/common-dir/issues"},"license":"MIT"}