1 | # Installation
|
2 | > `npm install --save @types/path-browserify`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for path-browserify (https://github.com/browserify/path-browserify).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/path-browserify.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/path-browserify/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for path-browserify 1.0
|
12 | // Project: https://github.com/browserify/path-browserify
|
13 | // Definitions by: Nathan Bierema <https://github.com/Methuselah96>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 |
|
16 | declare namespace path {
|
17 | interface PathObject {
|
18 | root: string;
|
19 | dir: string;
|
20 | base: string;
|
21 | ext: string;
|
22 | name: string;
|
23 | }
|
24 |
|
25 | interface Path {
|
26 | resolve(...pathSegments: string[]): string;
|
27 | normalize(path: string): string;
|
28 | isAbsolute(path: string): boolean;
|
29 | join(...paths: string[]): string;
|
30 | relative(from: string, to: string): string;
|
31 | dirname(path: string): string;
|
32 | basename(path: string, ext?: string): string;
|
33 | extname(path: string): string;
|
34 | format(pathObject: Partial<PathObject>): string;
|
35 | parse(path: string): PathObject;
|
36 |
|
37 | readonly sep: string;
|
38 | readonly delimiter: string;
|
39 | readonly win32: null;
|
40 | readonly posix: Path;
|
41 | }
|
42 | }
|
43 |
|
44 | declare const path: path.Path;
|
45 | export = path;
|
46 |
|
47 | ````
|
48 |
|
49 | ### Additional Details
|
50 | * Last updated: Thu, 28 Oct 2021 14:01:28 GMT
|
51 | * Dependencies: none
|
52 | * Global values: none
|
53 |
|
54 | # Credits
|
55 | These definitions were written by [Nathan Bierema](https://github.com/Methuselah96).
|
56 |
|
\ | No newline at end of file |