</>PackageGraphPackageGraph

iconv-lite

npmv0.7.3TypeScript

Convert character encodings in pure javascript.

Safe to adopt

Yes — iconv-lite scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 68 days ago. 6 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 68 days ago. 6 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 377 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • 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 iconv-lite 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.

377 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 iconv-lite, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=0.10.0
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the iconv-lite README.

javascriptFull README ↗
var iconv = require('iconv-lite');

// Convert from an encoded buffer to a js string.
str = iconv.decode(Buffer.from([0x68, 0x65, 0x6c, 0x6c, 0x6f]), 'win1251');

// Convert from a js string to an encoded buffer.
buf = iconv.encode("Sample input string", 'win1251');

// Check if encoding is supported
iconv.encodingExists("us-ascii")

iconv-lite vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
iconv-litethis page06MIT2 months ago
color-convert299.6M1MIT1 day ago
camelcase95.7M2MIT1 day ago
decamelize62.6M4MIT1 day ago
convert-source-map07MIT1 day ago
tildify01MIT1 day ago

Dependencies

Declared by iconv-lite v0.7.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (17)

@arethetypeswrong/cli ^0.18.4@stylistic/eslint-plugin ^5.1.0@stylistic/eslint-plugin-js ^4.1.0@types/node ^24.0.12async ^3.2.0bench-node ^0.10.0errto ^0.2.1eslint ^9.0.0expect-type ^1.2.0iconv ^2.3.5mocha ^6.2.2neostandard ^0.12.0nyc ^14.1.1request ^2.88.2semver ^6.3.0typescript ~5.9.2unorm ^1.6.0

Used by

Popular packages that depend on iconv-lite.

Relationship graph

Dependencies (left) and dependents (right) of iconv-lite.

Frequently installed together

Release history

6 releases in the last two years, typically about 89 days apart.

Recent versions of iconv-lite
VersionPublishedSizeLicense
1.0.0-alpha.22 months ago373 KBMIT
0.7.3latest2 months ago336 KBMIT
1.0.0-alpha.18 months ago348 KBMIT
0.7.28 months ago336 KBMIT
0.7.19 months ago343 KBMIT
0.7.01 year ago334 KBMIT
0.6.35 years ago340 KBMIT
0.6.26 years ago336 KBMIT
0.6.16 years ago334 KBMIT
0.6.06 years ago333 KBMIT
0.5.26 years ago339 KBMIT
0.5.16 years ago338 KBMIT
0.5.07 years ago338 KBMIT
0.4.248 years ago328 KBMIT
0.4.238 years ago328 KBMIT

Overview

iconv-lite is an npm package that convert character encodings in pure javascript. It has 6 known dependents in the graph. The latest version is 0.7.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need convert character encodings in pure javascript and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (18 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use iconv-lite?

Yes — iconv-lite scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 68 days ago. 6 releases in the last 2 years.

How do I install iconv-lite?

Run `npm install iconv-lite` to add iconv-lite to your npm project.

How many dependencies does iconv-lite have?

iconv-lite declares 18 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 377 KB on disk.

What license is iconv-lite released under?

iconv-lite is distributed under the MIT license.

How popular is iconv-lite?

npm does not publish download counts. Within PackageGraph's crawl, 6 known packages depend on iconv-lite.

Is iconv-lite still maintained?

The most recent release of iconv-lite (v0.7.3) was published 2 months ago.

Does iconv-lite run install scripts?

No. iconv-lite does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.