UNPKG

img-src-placeholder

Version:

Replace src=# in <img> tags with a data URL of a transparent 1 pixel image (CLI for package.json scripts)

10 lines (7 loc) 219 B
#!/usr/bin/env node ///////////////////////// // img-src-placeholder // // MIT License // ///////////////////////// import { imgSrcPlaceholder } from '../dist/img-src-placeholder.js'; imgSrcPlaceholder.cli();