sindresorhus

domify

html -> elements

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
nikku

What is the problem This project is not an ES module, despite having an declaration (ref). This causes some bundlers/built chains (https://angular.dev/) to warn when using the library from ESM setups. Proposed improvement I propose to turn this library into an ESM only module which can be nowadays consumed by modern environments (Node >= 20.12, bundlers, browsers). Essentially this means to add "type": "module" and simplify "exports" declaration.

nikku · 8mo ago
Kequc

Running the following code returns a text node. Seems to be because the function bails early when it does not detect a matching tag.

Kequc · 2y ago
Structured data for AI agents

Repository: sindresorhus/domify. Description: html -> elements Stars: 262, Forks: 31. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v3.0.0 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: tj, jonathanong, TooTallNate, sindresorhus, timoxley, stephenmathieson, domenic, jkroso, lancejpollard, matthewmueller and others.