PHPackages                             gaomingcode/autosize - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gaomingcode/autosize

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gaomingcode/autosize
====================

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

5.0.0(4y ago)013MITJavaScript

Since Jun 3Pushed 4y agoCompare

[ Source](https://github.com/gaomingcode/autosize)[ Packagist](https://packagist.org/packages/gaomingcode/autosize)[ Docs](https://www.jacklmoore.com/autosize/)[ RSS](/packages/gaomingcode-autosize/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Autosize
========

[](#autosize)

[![GitHub Version](https://camo.githubusercontent.com/12f12c3c18c019d34081875eba8bde8cdaee0be56fe9938a34c5d547557ae36a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f67616f6d696e67636f64652f6175746f73697a652e737667)](https://github.com/gaomingcode/autosize)[![Packagist Downloads](https://camo.githubusercontent.com/075abee64fd2121222045825c14ff29d0277f7ff45de12039c13833f3de3f8a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f67616f6d696e67636f64652f6175746f73697a65)](https://github.com/gaomingcode/autosize)[![Github License](https://camo.githubusercontent.com/5b3beecf56819484fb0a9882d8337dfb0e8630a69a94b359a1c6af13dc7ced43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f67616f6d696e67636f64652f6175746f73697a65)](https://github.com/gaomingcode/autosize)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require gaomingcode/autosize

```

ReadMe from Origin
------------------

[](#readme-from-origin)

Summary
-------

[](#summary)

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

#### Demo

[](#demo)

Full documentation and a demo can be found at [jacklmoore.com/autosize](http://jacklmoore.com/autosize)

#### Install via NPM

[](#install-via-npm)

```
npm install autosize
```

#### Browser compatibility

[](#browser-compatibility)

ChromeFirefoxIESafariiOS SafariAndroidOpera MiniWindows Phone IEyesyes9yesyes4?8.1#### Usage

[](#usage)

The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.

```
// from a NodeList
autosize(document.querySelectorAll('textarea'));

// from a single Node
autosize(document.querySelector('textarea'));

// from a jQuery collection
autosize($('textarea'));
```

Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b333bd44a2f7f526cc29a59b2945b27c7d2f31df68b92c2eb46efbddc032483?d=identicon)[gaomingcode](/maintainers/gaomingcode)

---

Top Contributors

[![jackmoore](https://avatars.githubusercontent.com/u/59797?v=4)](https://github.com/jackmoore "jackmoore (127 commits)")[![gaomingcode](https://avatars.githubusercontent.com/u/53959161?v=4)](https://github.com/gaomingcode "gaomingcode (10 commits)")[![njam](https://avatars.githubusercontent.com/u/360800?v=4)](https://github.com/njam "njam (4 commits)")[![firedev](https://avatars.githubusercontent.com/u/115612?v=4)](https://github.com/firedev "firedev (2 commits)")[![jclement](https://avatars.githubusercontent.com/u/366691?v=4)](https://github.com/jclement "jclement (2 commits)")[![hnguyen08](https://avatars.githubusercontent.com/u/2112727?v=4)](https://github.com/hnguyen08 "hnguyen08 (1 commits)")[![jam13](https://avatars.githubusercontent.com/u/546883?v=4)](https://github.com/jam13 "jam13 (1 commits)")[![joaocunha](https://avatars.githubusercontent.com/u/766837?v=4)](https://github.com/joaocunha "joaocunha (1 commits)")[![KaneCohen](https://avatars.githubusercontent.com/u/578455?v=4)](https://github.com/KaneCohen "KaneCohen (1 commits)")[![korny](https://avatars.githubusercontent.com/u/1037292?v=4)](https://github.com/korny "korny (1 commits)")[![ledermann](https://avatars.githubusercontent.com/u/3557?v=4)](https://github.com/ledermann "ledermann (1 commits)")[![leonidaz](https://avatars.githubusercontent.com/u/329182?v=4)](https://github.com/leonidaz "leonidaz (1 commits)")[![markusgut](https://avatars.githubusercontent.com/u/19843853?v=4)](https://github.com/markusgut "markusgut (1 commits)")[![nazar-pc](https://avatars.githubusercontent.com/u/928965?v=4)](https://github.com/nazar-pc "nazar-pc (1 commits)")[![neilb](https://avatars.githubusercontent.com/u/478461?v=4)](https://github.com/neilb "neilb (1 commits)")[![nickbaum](https://avatars.githubusercontent.com/u/321587?v=4)](https://github.com/nickbaum "nickbaum (1 commits)")[![Ninir](https://avatars.githubusercontent.com/u/855022?v=4)](https://github.com/Ninir "Ninir (1 commits)")[![onionhammer](https://avatars.githubusercontent.com/u/969938?v=4)](https://github.com/onionhammer "onionhammer (1 commits)")[![Revisor](https://avatars.githubusercontent.com/u/550341?v=4)](https://github.com/Revisor "Revisor (1 commits)")[![rmcauley](https://avatars.githubusercontent.com/u/341137?v=4)](https://github.com/rmcauley "rmcauley (1 commits)")

---

Tags

uiformtextareaautosize

### Embed Badge

![Health badge](/badges/gaomingcode-autosize/health.svg)

```
[![Health](https://phpackages.com/badges/gaomingcode-autosize/health.svg)](https://phpackages.com/packages/gaomingcode-autosize)
```

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[harvesthq/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

385.2M12](/packages/harvesthq-chosen)[jjj/chosen

Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.

27522.1k2](/packages/jjj-chosen)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
