Mocha Image Compiler

JSON →
library 1.0.0 ·javascript
verified May 1, 2026

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.

total hits 13
actors 5 distinct systems
last hit 4d ago AhrefsBot
MetaBot
3
GPTBot
2
ClaudeBot
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇮🇹 Italy · 🇸🇬 Singapore