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
| Size | 12.5 KB gzipped (dist/index.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v6.1.2, September 2024 |
| Last activity | 2024-09-02 (Stable) |
| Stars | 491 on GitHub |
| Formats | ES 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 hits | 24,245 a month on jsDelivr |
| npm downloads | 13,719 a month |
| Gates | G1 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
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 156 in the directory. Facts refreshed monthly; last run 2026-10-30.