@types/bufferhelper
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

Installation

npm install --save @types/bufferhelper

Summary

This package contains type definitions for bufferhelper (https://github.com/JacksonTian/bufferhelper).

Details

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

index.d.ts

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

declare namespace BufferHelper {
    type encoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "binary" | "hex";
}

declare class BufferHelper {
    constructor();

    concat(buffer: any): BufferHelper;
    empty(): BufferHelper;
    load(stream: any, callback: (arg: any) => any): void;
    toBuffer(): Buffer;
    toString(encoding: BufferHelper.encoding): string;
}

export = BufferHelper;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Max Boguslavskiy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/bufferhelper

Weekly Downloads

71

Version

0.2.4

License

MIT

Unpacked Size

3.52 kB

Total Files

5

Last publish

Collaborators

  • types