🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@assetopt/cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assetopt/cli

Command-line tool to optimize images, CSS, JS and SVG assets — open source, MIT.

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
215
-57.76%
Maintainers
1
Weekly downloads
 
Created
Source

@assetopt/cli

Command-line tool to optimize images, CSS, JS and SVG assets — open source, MIT.

npm version npm downloads MIT license

assetopt optimizing images, CSS, JS and SVG in one command — 65% smaller, locally, no upload

🌐 Landing page & live demo → — overview, before/after gallery, and a downloadable demo pack to try assetopt yourself.

Install

npm install -g @assetopt/cli
# or as a project dev dependency
npm install --save-dev @assetopt/cli

Quick start

# Generate a default .assetoptrc
assetopt init

# Dry-run: report potential savings without writing anything
assetopt analyze ./public

# Optimize for real (writes to ./optimized/ by default)
assetopt optimize ./public

Commands

CommandEffect
assetopt optimize [dir]Optimize and write results to output.dir
assetopt analyze [dir]Dry-run: report savings without writing files
assetopt audit [dir]Flag problematic assets (oversized, optimization potential)
assetopt initCreate a default .assetoptrc
assetopt cleanRemove the cache (or the whole output dir with --all)

Run assetopt <command> --help to see every flag and option.

Documentation

For workflows, configuration reference, and the full feature catalog, see the project repository:

  • Landing page — project overview, before/after gallery, and a downloadable demo pack
  • Recommended workflows — three integration patterns (CI pre-deploy, hand-written static site, asset prep)
  • CLI reference — every command, flag, and exit code
  • Configuration reference — every .assetoptrc field
  • FAQ — common objections and edge cases

For the programmatic API, see @assetopt/core.

License

MIT.

Keywords

cli

FAQs

Package last updated on 11 Jul 2026

Did you know?

Socket

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.

Install

Related posts