Alexandro.Net

Version 1.0.0

@stackline/is-buffer

Determine if an object is a Buffer

Independent maintenance of is-buffer 2.0.5. Original authors and licenses are retained.

Installation

# Preserve existing imports with an npm alias
npm install is-buffer@npm:@stackline/is-buffer@1.0.0
# Or use the scoped package name in your imports
npm install @stackline/is-buffer@1.0.0

Node.js: >=4. Read the compatibility and maintenance notes before migrating.

Usage and API

The reference below may retain upstream package names. Use the alias installation above to run those imports with this Stackline release.

@stackline/is-buffer

Independent maintenance fork of is-buffer@2.0.5. Original API, module format, runtime dependency ranges, and supported Node.js engines are preserved.

npm install @stackline/is-buffer
# Preserve existing imports with an npm alias:
npm install is-buffer@npm:@stackline/is-buffer@1.0.0

See UPSTREAM.md for the exact source and issue review, and CHANGELOG.md for focused maintenance changes. Development and release tooling runs on Node.js 24; that does not change the library runtime requirement.

Maintained by Stackline. Issues · npm.

Upstream documentation

is-buffer travis npm downloads javascript style guide

Determine if an object is a Buffer (including the browserify Buffer)

saucelabs

Why not use Buffer.isBuffer?

This module lets you check if an object is a Buffer without using Buffer.isBuffer (which includes the whole buffer module in browserify).

It's future-proof and works in node too!

install

npm install is-buffer

usage

var isBuffer = require('is-buffer')

isBuffer(new Buffer(4)) // true
isBuffer(Buffer.alloc(4)) //true

isBuffer(undefined) // false
isBuffer(null) // false
isBuffer('') // false
isBuffer(true) // false
isBuffer(false) // false
isBuffer(0) // false
isBuffer(1) // false
isBuffer(1.0) // false
isBuffer('string') // false
isBuffer({}) // false
isBuffer(function foo () {}) // false

license

MIT. Copyright (C) Feross Aboukhadijeh.

Upstream issues and maintenance review

Upstream and issue review

Base: feross/is-buffer, npm is-buffer@2.0.5, commit ec4bf3415108e8971375e6717ad63dde752faebf. Full Git history and MIT license are retained. Last npm release: 2020-11-03. This indicates release inactivity, not proof that the upstream is abandoned.

Reviewed the 2026-09-28 collection of 100 most recently updated open and 30 closed issue/PR entries, with PRs excluded: one open issue and three closed issues were available. This is bounded issue triage, not exhaustive historical review.

No confirmed runtime defect was identified in this review. Runtime source remains byte-for-byte identical to the selected upstream commit. Tests cover native Buffers, typed arrays, DataViews, cross-context inputs, and executing the module without a global Buffer. The browser-context check is a VM test, not a claim of a full browser matrix.

Release changes

Changelog

1.0.0 — 2026-09-28

Initial Stackline maintenance fork of is-buffer 2.0.5. Preserve the API, CommonJS entry, MIT license and Node >=4 engine requirement. Mark the module free of initialization side effects. Pin current test tooling, retain upstream cases and add browser-context/packed-consumer tests. Releases use the exact reviewed GitHub CI tarball with npm provenance and immutable GitHub evidence.

Release files and references

Package bytes, npm provenance and the immutable GitHub release were verified for this version. Security checks describe the reviewed release; documented compatibility risks and upstream reports are not blanket claims of resolution.