179 breaking releases

new 0.182.0 Dec 11, 2024
0.180.0 Nov 28, 2024
0.164.0 Jul 31, 2024
0.143.0 Mar 28, 2024
0.2.0 Mar 21, 2021

#88 in Programming languages

Download history 4481/week @ 2024-08-21 4159/week @ 2024-08-28 4679/week @ 2024-09-04 3442/week @ 2024-09-11 4363/week @ 2024-09-18 5166/week @ 2024-09-25 4105/week @ 2024-10-02 4094/week @ 2024-10-09 4416/week @ 2024-10-16 4001/week @ 2024-10-23 4151/week @ 2024-10-30 4370/week @ 2024-11-06 3828/week @ 2024-11-13 4667/week @ 2024-11-20 4129/week @ 2024-11-27 3709/week @ 2024-12-04

17,156 downloads per month
Used in 69 crates (23 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