# Install critical with npm

Extract & Inline Critical-path CSS from HTML. Version 8.0.0 via npm; verified 2026-05-17.

## Install

```sh
sudo av install npm:critical
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g critical
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:critical
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/critical>
- **Version:** 8.0.0
- **Source summary:** Extract & Inline Critical-path CSS from HTML
- **Repository:** addyosmani/critical
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/critical/-/critical-8.0.0.tgz>
- **Published:** 2026-05-17T10:20:55.977Z
- **Last updated:** 2026-05-17T10:20:55.977Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- critical (cli)
- critical (alias)

## Dependencies

- @adobe/css-tools
- async-traverse-tree
- clean-css
- common-tags
- css-url-parser
- data-uri-to-buffer
- debug
- find-up
- globby
- got
- group-args
- indent-string
- inline-critical
- is-glob
- joi
- lodash
- lodash-es
- make-dir
- meow
- oust
- p-all
- penthouse-esm
- picocolors
- plugin-error
- postcss
- postcss-discard
- postcss-image-inliner
- postcss-url
- replace-ext
- slash
- tempy
- through2
- vinyl

## Build dependencies

- @vitest/coverage-v8
- async
- finalhandler
- get-port
- nock
- normalize-newline
- serve-static
- stream-array
- stream-assert
- vinyl-source-stream
- vite-plus

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 8.0.0
- Package-manager updated: 2026-05-17
- Local data: ok
- info: No upstream repository was available in local package data.

## Security Notes

No matching local secret-handling manifest was found for critical. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 8.0.0, Next: 2.0.0-27, Prev: 1.3.10
- **Version Count:** 112
- **Maintainers:** bezoerb, sindresorhus, addyosmani
- **Publisher:** bezoerb
- **Engines:** Node: >=22.13.0
- **Integrity:** sha512-e75N/LvuowwU6AkMB12iMjp08f6DlqGb0sJaTOnjJhRSuaoq/AFmNg/sNMV1E1pyQwC+uJz4hiHN46GKuABZaQ==
- **Shasum:** fe4af30b79d7b30037329b80dc27766141ec0db0
- **Unpacked Size:** 95,279
- **File Count:** 0
- **Created At:** 2014-06-28T17:43:52.164Z
- **Latest Published At:** 2026-05-17T10:20:55.977Z
- **Modified At:** 2026-05-17T10:20:56.119Z


## Related links

- [Web development packages](https://pkg.so/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [inline-critical](https://pkg.so/npm/inline-critical/) - Local package facts share a topical domain. Shared terms: adobe, clean, clean-css, cli, critical.
- [extract-react-intl-messages](https://pkg.so/npm/extract-react-intl-messages/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, extract, frontend.
- [prettier-eslint-cli](https://pkg.so/npm/prettier-eslint-cli/) - Local package facts share a topical domain. Shared terms: cli, common, common-tags, developer, developer-tools.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
