3.2.4 • Published 6 months ago

@types/folder-walker v3.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/folder-walker

Summary

This package contains type definitions for folder-walker (https://github.com/okdistribute/folder-walker (Does not have to be to GitHub).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/folder-walker.

index.d.ts

// Type definitions for folder-walker 3.2
// Project: https://github.com/okdistribute/folder-walker (Does not have to be to GitHub, but prefer linking to a source code repository rather than to a project website.)
// Definitions by: bfsgr <https://github.com/bfsgr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node"/>

import * as fs from 'fs';

interface WalkerOptions {
    fs?: NodeRequire;
    maxDepth?: number;
    filter: (filename: string) => boolean;
}

declare function walker(dirs: ReadonlyArray<string>, opts?: WalkerOptions): NodeJS.ReadableStream;

declare namespace walker {
    interface Entry {
        basename: string;
        relname: string;
        root: string;
        filepath: string;
        stat: fs.Stats;
        type: "file" | "directory";
    }
}

export = walker;

Additional Details

  • Last updated: Mon, 15 Nov 2021 17:01:35 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by bfsgr.

3.2.2

7 months ago

3.2.1

8 months ago

3.2.4

6 months ago

3.2.3

7 months ago

3.2.0

3 years ago