# @types/buffer-from

> TypeScript definitions for buffer-from

Latest version **1.1.3** (published 2023-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/buffer-from
pnpm add @types/buffer-from
yarn add @types/buffer-from
bun add @types/buffer-from
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-11-20 |
| First published | 2018-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51415 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/buffer-from
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffer-from
- npm.io page: https://npm.io/package/@types/buffer-from

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.1.3 (latest) — 2023-11-20
- 1.1.0 (ts2.0) — 2018-06-20
- 1.1.2 — 2023-11-07
- 1.1.1 — 2023-10-17

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffer-from/index.d.ts)
````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](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Nat Burns](https://github.com/burnnat).

---
_Source: https://npm.io/package/@types/buffer-from · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
