commondir/000755 001751 000177 0000000000 14522265601014531 5ustar00runner000000 000000 1452226560114522265601commondir/LICENSE000644 001751 000177 0000002165 14522265601015542 0ustar00runner000000 000000 1452226560114522265601 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE commondir/README.md000644 001751 000177 0000002304 14522265601016002 0ustar00runner000000 000000 1452230506114522265601# Installation > `npm install --save @types/commondir` # Summary This package contains type definitions for commondir (https://github.com/substack/node-commondir). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/commondir. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/commondir/index.d.ts) ````ts export = commondir; /** * Compute the closest common parent directory for an array absolutePaths. * * @see \`{@link https://github.com/substack/node-commondir#commondirabsolutepaths }\` */ declare function commondir(basedir: string, relativePaths: string[]): string; /** * Compute the closest common parent directory for an array relativePaths which will be resolved for each dir in * relativePaths according to: path.resolve(basedir, dir). * * @see \`{@link https://github.com/substack/node-commondir#commondirbasedir-relativepaths }\` */ declare function commondir(absolutePaths: string[]): string; ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: none # Credits These definitions were written by [Leonard Thieu](https://github.com/leonard-thieu). commondir/index.d.ts000644 001751 000177 0000001143 14522265601016431 0ustar00runner000000 000000 1452226560114522265601export = commondir; /** * Compute the closest common parent directory for an array absolutePaths. * * @see \`{@link https://github.com/substack/node-commondir#commondirabsolutepaths }\` */ declare function commondir(basedir: string, relativePaths: string[]): string; /** * Compute the closest common parent directory for an array relativePaths which will be resolved for each dir in * relativePaths according to: path.resolve(basedir, dir). * * @see \`{@link https://github.com/substack/node-commondir#commondirbasedir-relativepaths }\` */ declare function commondir(absolutePaths: string[]): string; commondir/package.json000644 001751 000177 0000001445 14522265601017016 0ustar00runner000000 000000 1452230506114522265601{ "name": "@types/commondir", "version": "1.0.2", "description": "TypeScript definitions for commondir", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/commondir", "license": "MIT", "contributors": [ { "name": "Leonard Thieu", "githubUsername": "leonard-thieu", "url": "https://github.com/leonard-thieu" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/commondir" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "71caf797b46d26356a9454e903aa14a617b134d5f282a826a24cc0e65f2a60aa", "typeScriptVersion": "4.5" }