buffer-image-size
npmv0.6.4TypeScriptget dimensions of any image buffer
Not recommended for new projects
No — buffer-image-size should not be adopted for new projects. Last published 3115 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 3115 days ago.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 2.6 MB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding buffer-image-size to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing buffer-image-size, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=4.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the buffer-image-size README.
var sizeOf = require('buffer-image-size');
var dimensions = sizeOf(yourImageBuffer);
console.log(dimensions.width, dimensions.height);buffer-image-size vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| buffer-image-sizethis page | 0 | 1 | MIT | 8 years ago |
| image-size | 0 | 1 | MIT | 1 day ago |
| get-east-asian-width | 69.3M | 1 | MIT | 1 day ago |
| string-width | 0 | 3 | MIT | 1 day ago |
| @blazediff/core | 0 | 1 | MIT | 1 day ago |
| d3-shape | 0 | 2 | ISC | 1 day ago |
Dependencies
Declared by buffer-image-size v0.6.4. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (7)
Used by
Popular packages that depend on buffer-image-size.
Relationship graph
Dependencies (left) and dependents (right) of buffer-image-size.
Frequently installed together
Encode & decode XML and HTML entities with ease & speed
Next generation testing framework powered by Vite
UI for Vitest
TypeScript definitions for ws
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
TypeScript definitions for node
TypeScript definitions for whatwg-mimetype
Prettier is an opinionated code formatter
Release history
No releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.6.4latest | 8 years ago | 17 KB | MIT |
| 0.6.3 | 8 years ago | 17 KB | MIT |
| 0.6.2 | 8 years ago | 16 KB | MIT |
Overview
buffer-image-size is an npm package that get dimensions of any image buffer. It has 1 known dependents in the graph. The latest version is 0.6.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get dimensions of any image buffer and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use buffer-image-size?
No — buffer-image-size should not be adopted for new projects. Last published 3115 days ago.
How do I install buffer-image-size?
Run `npm install buffer-image-size` to add buffer-image-size to your npm project.
How many dependencies does buffer-image-size have?
buffer-image-size declares 8 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 2.6 MB on disk.
What license is buffer-image-size released under?
buffer-image-size is distributed under the MIT license.
How popular is buffer-image-size?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on buffer-image-size.
Is buffer-image-size still maintained?
The most recent release of buffer-image-size (v0.6.4) was published 8 years ago.
Does buffer-image-size run install scripts?
No. buffer-image-size does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.