Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@webref/idl
Advanced tools
This package contains Web IDL scraped from the latest versions of web platform specifications in webref, with fixes applied to ensure all definitions can be parsed and are internally consistent.
The async listAll()
method resolves with an object where the keys are spec shortnames, and the values are objects with async text()
and parse()
methods to get the raw text and the result of parsing that with WebIDL2.parse
, respectively. Example:
const idl = require('@webref/idl');
const files = await idl.listAll();
for (const [shortname, file] of Object.entries(files)) {
const text = await file.text();
const ast = await file.parse();
// do something with text or ast
}
As a shorthand, the async parseAll()
method resolves with an object where the keys are spec shortnames and the values are the result of parsing the IDL with WebIDL2.parse
. Example:
const idl = require('@webref/idl');
const parsedFiles = await idl.parseAll();
for (const [shortname, ast] of Object.entries(parsedFiles)) {
// do something with the ast
}
The following guarantees are provided by this package:
peerDependencies
in package.json
.WebIDL2.validate
passes with the exception of the "no-nointerfaceobject" rule about [LegacyNoInterfaceObject]
, which is in wide use.The following guarantees are not provided:
FAQs
Web IDL definitions of the web platform
The npm package @webref/idl receives a total of 557 weekly downloads. As such, @webref/idl popularity was classified as not popular.
We found that @webref/idl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.