plainJS

Libraries / UI

file-upload-with-preview

🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.

No-build verifiedStable0 dependenciesESM + script tagTypes bundledMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size12.5 KB gzipped (dist/index.js)
LicenceMIT
Dependenciesnone
Last releasev6.1.2, September 2024
Last activity2024-09-02 (Stable)
Stars491 on GitHub
FormatsES module; classic script (global DEFAULT_BACKGROUND_IMAGE;DEFAULT_BASE_IMAGE;DEFAULT_BROWSE_TEXT;DEFAULT_CHOOSE_FILE_TEXT;DEFAULT_FILES_SELECTED_TEXT;DEFAULT_LABEL_TEXT;DEFAULT_SUCCESS_FILE_ALT_IMAGE;DEFAULT_SUCCESS_PDF_IMAGE;DEFAULT_SUCCESS_VIDEO_IMAGE;Events;FileUploadWithPreview;MULTI_ITEM_CLEAR_ANIMATION_CLASS;UNIQUE_ID_IDENTIFIER); TypeScript types in the package
CDN hits24,245 a month on jsDelivr
npm downloads13,719 a month
GatesG1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v6.1.2 in headless Chromium, 2026-10-30
Advertisement

Entry 156 in the directory. Facts refreshed monthly; last run 2026-10-30.