Skip to content
JS
Package

to-buffer

Pass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.

v1.2.2, 24 Sept 2025MITCommonJSTypes: None
$ npm install to-buffer

Key numbers

As of 25 Sept 2026
Weekly downloads
15m
+55% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
11 months ago
v1.2.2
GitHub stars
31
4 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
4

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 20.7m (18 Aug 2026)Low 6.3m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

15,010,119 downloads last week, 73,356,707 in the last month. The 12-month change of +55% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
1.2.2, 24 Sept 202511 months ago
First published
15 Feb 2016
Last push to GitHub
16 Apr 2026162 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
4
Dependents on npm
66

Major versions

  1. v1 first release 1.0.0, 15 Feb 2016

Recent releases

VersionPublished
1.2.224 Sept 2025
1.2.120 Jun 2025
1.2.017 Jun 2025
1.1.126 Apr 2018
1.1.012 Apr 2017
1.0.115 Feb 2016
1.0.015 Feb 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 0.4
Runtimes
-
Unpacked size (npm)
14 kB
Dependencies (3)
isarraysafe-buffertyped-array-buffer
npm install to-buffer
  • jsDelivrhttps://cdn.jsdelivr.net/npm/to-buffer@1.2.2/
  • unpkghttps://unpkg.com/to-buffer@1.2.2/
  • esm.shhttps://esm.sh/to-buffer@1.2.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.