177 breaking releases

new 0.180.0 Nov 28, 2024
0.178.0 Nov 21, 2024
0.164.0 Jul 31, 2024
0.143.0 Mar 28, 2024
0.2.0 Mar 21, 2021

#99 in Programming languages

Download history 3759/week @ 2024-08-08 2895/week @ 2024-08-15 4586/week @ 2024-08-22 4332/week @ 2024-08-29 4477/week @ 2024-09-05 3584/week @ 2024-09-12 4576/week @ 2024-09-19 5276/week @ 2024-09-26 3791/week @ 2024-10-03 3970/week @ 2024-10-10 4666/week @ 2024-10-17 3934/week @ 2024-10-24 4105/week @ 2024-10-31 4155/week @ 2024-11-07 3855/week @ 2024-11-14 4629/week @ 2024-11-21

17,613 downloads per month
Used in 67 crates (22 directly)

MIT license

51KB
1.5K SLoC

JavaScript 1.5K SLoC // 0.0% comments TypeScript 395 SLoC // 0.3% comments Rust 1 SLoC

deno_webidl

This crate implements WebIDL for Deno. It consists of infrastructure to do ECMA -> WebIDL conversions.

Spec: https://webidl.spec.whatwg.org/

Usage Example

From javascript, include the extension's source, and assign the following to the global scope:

import * as webidl from "ext:deno_webidl/00_webidl.js";
Object.defineProperty(globalThis, webidl.brand, {
  value: webidl.brand,
  enumerable: false,
  configurable: true,
  writable: true,
});

Then from rust, provide init_webidl::init_webidl::init_ops_and_esm() in the extensions field of your RuntimeOptions

Dependencies

~85MB
~1.5M SLoC