
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
@types/klaw
Advanced tools
npm install --save @types/klaw
This package contains type definitions for klaw (https://github.com/jprichardson/node-klaw).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/klaw.
// Type definitions for klaw v3.0.0
// Project: https://github.com/jprichardson/node-klaw
// Definitions by: Matthew McEachen <https://github.com/mceachen>
// Pascal Sthamer <https://github.com/p4sca1>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
declare module "klaw" {
import * as fs from "fs";
import { Readable, ReadableOptions } from "stream";
function K(root: string, options?: K.Options): K.Walker;
namespace K {
interface Item {
path: string;
stats: fs.Stats;
}
type QueueMethod = "shift" | "pop";
interface Options extends ReadableOptions {
queueMethod?: QueueMethod | undefined;
pathSorter?: ((pathA: string, pathB: string) => number) | undefined;
fs?: any; // fs or mock-fs
filter?: ((path: string) => boolean) | undefined;
depthLimit?: number | undefined;
preserveSymlinks?: boolean | undefined;
}
type Event = "close" | "data" | "end" | "error" | "pause" | "readable" | "resume";
interface Walker extends Readable, AsyncIterable<Item> {
on(event: Event, listener: Function): this;
on(event: "close", listener: () => void): this;
on(event: "data", listener: (item: Item) => void): this;
on(event: "end", listener: () => void): this;
on(event: "readable", listener: () => void): this;
on(event: "error", listener: (err: Error) => void): this;
read(): Item;
[Symbol.asyncIterator](): AsyncIterableIterator<Item>;
}
}
export = K;
}
These definitions were written by Matthew McEachen, and Pascal Sthamer.
FAQs
TypeScript definitions for klaw
The npm package @types/klaw receives a total of 473,683 weekly downloads. As such, @types/klaw popularity was classified as popular.
We found that @types/klaw demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.