canirequire

canirequireNo JS entry point › normalize.css

Is normalize.css ESM-only? Can you require() it?

A modern alternative to CSS resets

Last verified Sep 9, 2026 against normalize.css@8.0.1. JSON

No JS entry point No JavaScript entry point

normalize.css does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.

Latest
8.0.1 (Nov 9, 2018)
Module format
No JS entry point
Last CommonJS version
4.0.0
TypeScript types
None
Node engines
not declared
Weekly downloads
1.3M
License
MIT

Does normalize.css@8.0.1 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("normalize.css") from a CommonJS file and import "normalize.css" from an ES module.

Runtimerequire("normalize.css")import "normalize.css"
Node.js 18✗ failsSyntaxError✗ failsERR_UNKNOWN_FILE_EXTENSION
Node.js 20✗ failsSyntaxError✗ failsERR_UNKNOWN_FILE_EXTENSION
Node.js 22✗ failsSyntaxError✗ failsERR_UNKNOWN_FILE_EXTENSION
Node.js 24✗ failsSyntaxError✗ failsERR_UNKNOWN_FILE_EXTENSION
Node.js 26✗ failsSyntaxError✗ failsERR_UNKNOWN_FILE_EXTENSION
Bun 1.4✓ works✓ works

A failing require() on a CommonJS package usually means the package needs a browser/DOM global, a peer dependency, or a native binary that is not available in a bare Node.js process.

How to import normalize.css

ES modules (import)

import normalizeCss from "normalize.css";

CommonJS (require)

Not applicable.

Module format by version

Derived from the type, main and exports fields of every stable release on npm (13 versions; the newest 13 shown).

VersionsFormatFirst published
4.1.0 – 8.0.1No JS entry pointApr 12, 2016
4.0.0CommonJSMar 19, 2016
3.0.3No JS entry pointMar 31, 2015
0.0.1 – 3.0.2CommonJSJun 8, 2012

Frequently asked

Is normalize.css ESM-only?

normalize.css@8.0.1 has no importable main entry. normalize.css does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.

Does normalize.css work in Bun?

Yes. import "normalize.css" loaded successfully in Bun 1.4 on Sep 9, 2026.

Does normalize.css ship TypeScript types?

No. normalize.css ships no type declarations and there is no @types package for it.

Links

Other no js entry point packages

Similar popularity