1.0.3 • Published 6 months ago

@types/parents v1.0.3

Weekly downloads
4,519
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/parents

Summary

This package contains type definitions for parents (https://github.com/substack/node-parents).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parents.

index.d.ts

// Type definitions for parents 1.0
// Project: https://github.com/substack/node-parents
// Definitions by: TeamworkGuy2 <https://github.com/TeamworkGuy2>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Return an array of the parent directories of 'dir', including and starting with 'dir'.
 * If a dir isn't specified, process.cwd() will be used.
 * Optionally specify an 'opts.platform' to control whether the separator and
 * paths works the unixy way with '/' or the windowsy way where sometimes things use '/' and
 * sometimes they use '\\' and also there are leading drive letters and other exotic features.
 * If 'opts.platform' isn't specified, 'process.platform' will be used.
 * Anything that matches /^win/ will use the windowsy behavior.
 */
declare function parents(dir?: string, opts?: { platform?: string | undefined }): string[];

export = parents;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:17 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by TeamworkGuy2.

1.0.2

7 months ago

1.0.3

6 months ago

1.0.1

3 years ago

1.0.0

5 years ago