Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

readdirp

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readdirp - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

60

index.d.ts

@@ -5,34 +5,40 @@ // TypeScript Version: 3.2

import * as fs from "fs";
import {Readable} from "stream";
import * as fs from 'fs';
import { Readable } from 'stream';
interface EntryInfo {
path: string,
fullPath: string,
basename: string,
stats?: fs.Stats,
dirent?: fs.Dirent
}
declare namespace readdir {
interface EntryInfo {
path: string;
fullPath: string;
basename: string;
stats?: fs.Stats;
dirent?: fs.Dirent;
}
interface ReaddirpOptions {
root?: string;
fileFilter?: string | string[] | ((entry: EntryInfo) => boolean),
directoryFilter?: (entry: EntryInfo) => boolean,
type?: 'files' | 'directories' | 'files_directories' | 'all'
lstat?: boolean,
depth?: number
alwaysStat?: boolean
}
interface ReaddirpOptions {
root?: string;
fileFilter?: string | string[] | ((entry: EntryInfo) => boolean);
directoryFilter?: (entry: EntryInfo) => boolean;
type?: 'files' | 'directories' | 'files_directories' | 'all';
lstat?: boolean;
depth?: number;
alwaysStat?: boolean;
}
declare class ReaddirpStream extends Readable implements AsyncIterable<EntryInfo> {
read(): EntryInfo;
[Symbol.asyncIterator](): AsyncIterableIterator<EntryInfo>;
interface ReaddirpStream extends Readable, AsyncIterable<EntryInfo> {
read(): EntryInfo;
[Symbol.asyncIterator](): AsyncIterableIterator<EntryInfo>;
}
function promise(
root: string,
options?: ReaddirpOptions
): Promise<EntryInfo[]>;
}
declare const readdir: {
(root: string, options?: ReaddirpOptions): ReaddirpStream;
promise(root: string, options?: ReaddirpOptions): Promise<Array<EntryInfo>>;
ReaddirpStream: ReaddirpStream;
EntryInfo: EntryInfo;
};
declare function readdir(
root: string,
options?: readdir.ReaddirpOptions
): readdir.ReaddirpStream;
export = readdir;
{
"name": "readdirp",
"description": "Recursive version of fs.readdir with streaming api.",
"version": "3.1.2",
"version": "3.1.3",
"homepage": "https://github.com/paulmillr/readdirp",

@@ -33,3 +33,3 @@ "repository": {

"scripts": {
"test": "nyc mocha"
"test": "nyc mocha && dtslint"
},

@@ -45,3 +45,4 @@ "dependencies": {

"chai-subset": "^1.6",
"mocha": "^6.1.3",
"dtslint": "^0.9.8",
"mocha": "~6.1.3",
"nyc": "^14.1.1",

@@ -48,0 +49,0 @@ "rimraf": "^2.6.3"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc