Autosize
Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.
Dormant0 dependenciesESM + script tagMIT
Facts
| Size | 2.8 KB minified, 1.1 KB gzipped (dist/autosize.min.js) |
|---|---|
| Licence | MIT |
| Dependencies | none |
| Last release | v6.0.1, February 2023 |
| Last activity | 2023-02-15 (Dormant) |
| Stars | 5,081 on GitHub |
| Formats | ES module; classic script (global autosize) |
| CDN hits | 1.6 million a month on jsDelivr |
| npm downloads | 2.7 million 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 failed (not archived or deprecated). Smoke test on v6.0.1 in headless Chromium, 2026-10-30 |
Load it
Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/autosize.min.js"
integrity="sha384-Q9KD03bmEL9H3t9KOxcdN2YplobIplv9iv7srJG5fI9U22Pw0uvKgHwtI32TTG3U" crossorigin="anonymous"></script>import autosize from "https://cdn.jsdelivr.net/npm/[email protected]/dist/autosize.esm.js";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 58 in the directory. Facts refreshed monthly; last run 2026-10-30.