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

1.1.3 • Public • Published

Installation

npm install --save @types/buffer-from

Summary

This package contains type definitions for buffer-from (https://github.com/LinusU/buffer-from#readme).

Details

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

index.d.ts

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

declare function bufferFrom(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
declare function bufferFrom(str: string, encoding?: string): Buffer;
declare function bufferFrom(data: readonly any[] | Buffer): Buffer;

export = bufferFrom;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:23 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Nat Burns.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/buffer-from

    Weekly Downloads

    513,136

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    3.21 kB

    Total Files

    5

    Last publish

    Collaborators

    • types