parse-filepath/000755 001751 000177 0000000000 14522377323015465 5ustar00runner000000 000000 1452237732314522377323parse-filepath/LICENSE000644 001751 000177 0000002165 14522377323016476 0ustar00runner000000 000000 1452237732314522377323 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 parse-filepath/README.md000644 001751 000177 0000004016 14522377323016740 0ustar00runner000000 000000 1452242732214522377323# Installation > `npm install --save @types/parse-filepath` # Summary This package contains type definitions for parse-filepath (https://github.com/jonschlinkert/parse-filepath). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-filepath. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-filepath/index.d.ts) ````ts export = parseFilepath; /** * Pollyfill for node.js `path.parse()`, parses a filepath into an object. * * @param filepath */ declare function parseFilepath(filepath: string): parseFilepath.ParsedPath; declare namespace parseFilepath { interface ParsedPath { /** * The root of the path such as `'/'` or `'c:\'` */ root: string; /** * The full directory path such as `'/home/user/dir'` or `'c:\path\dir'` */ dir: string; /** * The file name including extension (if any) such as `'index.html'` */ base: string; /** * The file extension (if any) such as `'.html'` */ ext: string; /** * The file name without extension (if any) such as `'index'` */ name: string; /** * alias for `ext` */ extname: string; /** * alias for `base` */ basename: string; /** * alias for `dir` */ dirname: string; /** * alias for `name` */ stem: string; /** * the original filepath */ path: string; /** * fully resolved, absolute filepath */ absolute: string; /** * `true` if the given path is absolute */ isAbsolute: boolean; } } ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 09:09:39 GMT * Dependencies: none # Credits These definitions were written by [BendingBender](https://github.com/BendingBender). parse-filepath/index.d.ts000644 001751 000177 0000002624 14522377323017372 0ustar00runner000000 000000 1452237732314522377323export = parseFilepath; /** * Pollyfill for node.js `path.parse()`, parses a filepath into an object. * * @param filepath */ declare function parseFilepath(filepath: string): parseFilepath.ParsedPath; declare namespace parseFilepath { interface ParsedPath { /** * The root of the path such as `'/'` or `'c:\'` */ root: string; /** * The full directory path such as `'/home/user/dir'` or `'c:\path\dir'` */ dir: string; /** * The file name including extension (if any) such as `'index.html'` */ base: string; /** * The file extension (if any) such as `'.html'` */ ext: string; /** * The file name without extension (if any) such as `'index'` */ name: string; /** * alias for `ext` */ extname: string; /** * alias for `base` */ basename: string; /** * alias for `dir` */ dirname: string; /** * alias for `name` */ stem: string; /** * the original filepath */ path: string; /** * fully resolved, absolute filepath */ absolute: string; /** * `true` if the given path is absolute */ isAbsolute: boolean; } } parse-filepath/package.json000644 001751 000177 0000001471 14522377323017751 0ustar00runner000000 000000 1452242732214522377323{ "name": "@types/parse-filepath", "version": "1.0.2", "description": "TypeScript definitions for parse-filepath", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-filepath", "license": "MIT", "contributors": [ { "name": "BendingBender", "githubUsername": "BendingBender", "url": "https://github.com/BendingBender" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/parse-filepath" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "1babcfc76ce04f12c73dbe20cbea6be054ed4dc1c95c63c8a70bb8f38b66e6a3", "typeScriptVersion": "4.5" }