encoding-sniffer
npmv1.0.2TypeScriptImplementation of the HTML encoding sniffer algo, with stream support
Safe to adopt
Yes — encoding-sniffer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 4 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 176 days ago. 4 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 549 KB 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 encoding-sniffer 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 encoding-sniffer, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20.19.0
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the encoding-sniffer README.
import { DecodeStream, getEncoding, decodeBuffer } from "encoding-sniffer";
/**
* All functions accept an optional options object.
*
* Available options are (with default values):
*/
const options = {
/**
* The maximum number of bytes to sniff. Defaults to `1024`.
*/
maxBytes: 1024,
/**
* The encoding specified by the user. If set, this will only be overriddenDependencies
Declared by encoding-sniffer v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (9)
Used by
Popular packages that depend on encoding-sniffer.
Relationship graph
Dependencies (left) and dependents (right) of encoding-sniffer.
Frequently installed together
An HTTP/1.1 client, written from scratch for Node.js
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
render domhandler DOM nodes to a string
Next generation testing framework powered by Vite
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
TypeScript definitions for whatwg-mimetype
CSS selector engine supporting jQuery selectors
htmlparser2 tree adapter for parse5.
Utilities for working with htmlparser2's dom
Handler for htmlparser2 that turns pages into a dom
🔎 A simple, tiny and lightweight benchmarking library!
Release history
4 releases in the last two years, typically about 163 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.2latest | 5 months ago | 130 KB | MIT |
| 1.0.1 | 5 months ago | 130 KB | MIT |
| 1.0.0 | 5 months ago | 82 KB | MIT |
| 0.2.1 | 1 year ago | 158 KB | MIT |
| 0.2.0 | 2 years ago | 164 KB | MIT |
| 0.1.0 | 2 years ago | 160 KB | MIT |
| 0.0.2 | 3 years ago | 156 KB | MIT |
| 0.0.1 | 3 years ago | 155 KB | MIT |
| 0.0.0 | 3 years ago | 154 KB | MIT |
Overview
encoding-sniffer is an npm package that implementation of the HTML encoding sniffer algo, with stream support. It has 1 known dependents in the graph. The latest version is 1.0.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need implementation of the HTML encoding sniffer algo, with stream support 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
Funding
Frequently asked questions
Should I use encoding-sniffer?
Yes — encoding-sniffer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 4 releases in the last 2 years.
How do I install encoding-sniffer?
Run `npm install encoding-sniffer` to add encoding-sniffer to your npm project.
How many dependencies does encoding-sniffer have?
encoding-sniffer declares 10 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 549 KB on disk.
What license is encoding-sniffer released under?
encoding-sniffer is distributed under the MIT license.
How popular is encoding-sniffer?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on encoding-sniffer.
Is encoding-sniffer still maintained?
The most recent release of encoding-sniffer (v1.0.2) was published 5 months ago.
Does encoding-sniffer run install scripts?
No. encoding-sniffer does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.