160 breaking releases

new 0.163.0 Jul 26, 2024
0.161.0 Jul 12, 2024
0.143.0 Mar 28, 2024
0.129.0 Dec 21, 2023
0.2.0 Mar 21, 2021

#81 in Programming languages

Download history 4244/week @ 2024-04-05 5891/week @ 2024-04-12 6332/week @ 2024-04-19 5023/week @ 2024-04-26 6995/week @ 2024-05-03 7114/week @ 2024-05-10 7519/week @ 2024-05-17 5852/week @ 2024-05-24 5046/week @ 2024-05-31 5311/week @ 2024-06-07 7556/week @ 2024-06-14 5373/week @ 2024-06-21 4719/week @ 2024-06-28 5295/week @ 2024-07-05 5389/week @ 2024-07-12 4714/week @ 2024-07-19

20,948 downloads per month
Used in 58 crates (21 directly)

MIT license

47KB
1.5K SLoC

JavaScript 1K SLoC // 0.0% comments TypeScript 378 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

~94MB
~2M SLoC