Mocha Image Compiler
JSON →Mocha compiler that enables webpack-like importing of images (PNG, JPG, GIF, SVG) in Node.js test environments. Current version 1.0.0 is stable and rarely updated. It works by replacing image require calls with a simple path string, making it ideal for testing components that import images. Unlike webpack loaders, this is a lightweight, no-config solution specifically designed for Mocha's --compilers flag. Requires Mocha as a peer dependency.
Traffic · last 30 days ↓67% vs prev 7d
total hits 13
actors 5 distinct systems
last hit 4d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇮🇹 Italy · 🇸🇬 Singapore
Resources
API endpoints
full doc /v1/registry/mocha-image-compiler