@types/path-browserify
TypeScript definitions for path-browserify
Last updated 4 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/path-browserify 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/path-browserify

Summary

This package contains type definitions for path-browserify (https://github.com/browserify/path-browserify).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/path-browserify.

index.d.ts

// Type definitions for path-browserify 1.0
// Project: https://github.com/browserify/path-browserify
// Definitions by: Nathan Bierema <https://github.com/Methuselah96>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace path {
    interface PathObject {
        root: string;
        dir: string;
        base: string;
        ext: string;
        name: string;
    }

    interface Path {
        resolve(...pathSegments: string[]): string;
        normalize(path: string): string;
        isAbsolute(path: string): boolean;
        join(...paths: string[]): string;
        relative(from: string, to: string): string;
        dirname(path: string): string;
        basename(path: string, ext?: string): string;
        extname(path: string): string;
        format(pathObject: Partial<PathObject>): string;
        parse(path: string): PathObject;

        readonly sep: string;
        readonly delimiter: string;
        readonly win32: null;
        readonly posix: Path;
    }
}

declare const path: path.Path;
export = path;

Additional Details

  • Last updated: Thu, 28 Oct 2021 14:01:28 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Nathan Bierema.

Current Tags

  • 1.0.0                                ...           latest (4 years ago)
  • 1.0.0                                ...           ts3.7 (4 years ago)
  • 1.0.0                                ...           ts3.8 (4 years ago)
  • 1.0.0                                ...           ts3.9 (4 years ago)
  • 1.0.0                                ...           ts4.0 (4 years ago)
  • 1.0.0                                ...           ts4.1 (4 years ago)
  • 1.0.0                                ...           ts4.2 (4 years ago)
  • 1.0.0                                ...           ts4.3 (4 years ago)
  • 1.0.0                                ...           ts4.4 (4 years ago)
  • 1.0.0                                ...           ts4.5 (4 years ago)
  • 1.0.0                                ...           ts4.6 (4 years ago)
  • 1.0.0                                ...           ts4.7 (4 years ago)
  • 1.0.0                                ...           ts4.8 (4 years ago)
  • 1.0.0                                ...           ts4.9 (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |