Skip to content
JS
Package

is-self-closing

Returns true if the given name is a HTML void element or common SVG self-closing element.

v1.0.1MITCommonJSTypes: None
$ npm install is-self-closing

Key numbers

As of 25 Sept 2026
Weekly downloads
291.8k
-14% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
-
v1.0.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 422k (17 Mar 2026)Low 233.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

291,811 downloads last week, 1,448,968 in the last month. The 12-month change of -14% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.0.1
First published
-
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.12.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
self-closing-tags
npm install is-self-closing
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-self-closing@1.0.1/
  • unpkghttps://unpkg.com/is-self-closing@1.0.1/
  • esm.shhttps://esm.sh/is-self-closing@1.0.1
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.