</>PackageGraphPackageGraph

encoding-sniffer

npmv1.0.2TypeScript

Implementation 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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

549 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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 overridden
Example truncated — see the full README.

Dependencies

Declared by encoding-sniffer v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (9)

@biomejs/biome ^2.4.7@feedic/eslint-config ^0.3.1@types/node ^25.5.0eslint ^10.0.3eslint-config-biome ^2.1.3globals ^17.4.0typescript ^5.9.3typescript-eslint ^8.57.1vitest ^4.0.17

Used by

Popular packages that depend on encoding-sniffer.

Relationship graph

Dependencies (left) and dependents (right) of encoding-sniffer.

@exodus/bytescheerioencoding-sniffer
encoding-sniffer dependencies dependents

Frequently installed together

Release history

4 releases in the last two years, typically about 163 days apart.

Recent versions of encoding-sniffer
VersionPublishedSizeLicense
1.0.2latest5 months ago130 KBMIT
1.0.15 months ago130 KBMIT
1.0.05 months ago82 KBMIT
0.2.11 year ago158 KBMIT
0.2.02 years ago164 KBMIT
0.1.02 years ago160 KBMIT
0.0.23 years ago156 KBMIT
0.0.13 years ago155 KBMIT
0.0.03 years ago154 KBMIT

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.