webidl-conversions
npmv8.0.1Implements the WebIDL algorithms for converting to and from JavaScript values
Safe to adopt
Yes — webidl-conversions scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 250 days ago. 2 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 250 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 23 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 6 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
BSD-2-Clause — 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 webidl-conversions 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.
Compatibility
- Node.js
- node >=20
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the webidl-conversions README.
"use strict";
const conversions = require("webidl-conversions");
function doStuff(x, y) {
x = conversions["boolean"](x);
y = conversions["unsigned long"](y);
// actual algorithm code here
}webidl-conversions 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 |
|---|---|---|---|---|
| webidl-conversionsthis page | 0 | 2 | BSD-2-Clause | 8 months ago |
| type-fest | 337.8M | 6 | (MIT OR CC0-1.0) | 1 day ago |
| mime-types | 185.3M | 9 | MIT | 1 day ago |
| csstype | 142.8M | 2 | MIT | 1 day ago |
| express | 92.8M | 17 | MIT | 1 day ago |
| expect-type | 78.4M | 8 | Apache-2.0 | 1 day ago |
Dependencies
Declared by webidl-conversions v8.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on webidl-conversions.
Relationship graph
Dependencies (left) and dependents (right) of webidl-conversions.
Frequently installed together
An AST-based pattern checker for JavaScript.
Various operations on Uint8Array data
🔎 A simple, tiny and lightweight benchmarking library!
An implementation of the WHATWG URL Standard's URL API and parsing machinery
An HTTP/1.1 client, written from scratch for Node.js
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
A per-spec XML serializer implementation
CSS syntax patches for CSS tree
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
Sniff the encoding from a HTML byte stream
Validates whether a string matches the production for an XML name or qualified name
The semantic version parser used by npm.
Release history
2 releases in the last two years, typically about 63 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.0.1latest | 8 months ago | 23 KB | BSD-2-Clause |
| 8.0.0 | 1 year ago | 24 KB | BSD-2-Clause |
| 7.0.0 | 5 years ago | 24 KB | BSD-2-Clause |
| 6.1.0 | 6 years ago | 25 KB | BSD-2-Clause |
| 6.0.0 | 6 years ago | 22 KB | BSD-2-Clause |
| 5.0.0 | 6 years ago | 19 KB | BSD-2-Clause |
| 4.0.2 | 9 years ago | — | BSD-2-Clause |
| 4.0.1 | 9 years ago | — | BSD-2-Clause |
| 4.0.0 | 9 years ago | — | BSD-2-Clause |
| 3.0.1 | 10 years ago | — | BSD-2-Clause |
| 3.0.0 | 10 years ago | — | BSD-2-Clause |
| 2.0.1 | 10 years ago | — | BSD-2-Clause |
| 2.0.0 | 11 years ago | — | BSD-2-Clause |
| 1.2.1 | 11 years ago | — | BSD-2-Clause |
| 1.2.0 | 12 years ago | — | BSD-2-Clause |
Overview
webidl-conversions is an npm package that implements the WebIDL algorithms for converting to and from JavaScript values. It has 2 known dependents in the graph. The latest version is 8.0.1, released under the BSD-2-Clause license.
Who should use it
Teams working in the npm ecosystem who need implements the WebIDL algorithms for converting to and from JavaScript values and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (BSD-2-Clause).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use webidl-conversions?
Yes — webidl-conversions scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 250 days ago. 2 releases in the last 2 years.
How do I install webidl-conversions?
Run `npm install webidl-conversions` to add webidl-conversions to your npm project.
What license is webidl-conversions released under?
webidl-conversions is distributed under the BSD-2-Clause license.
How popular is webidl-conversions?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on webidl-conversions.
Is webidl-conversions still maintained?
The most recent release of webidl-conversions (v8.0.1) was published 8 months ago.
Does webidl-conversions run install scripts?
No. webidl-conversions does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.