jackmoore/autosize

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

JavaScript

5,083

168 commits

updated Feb 15, 2023

See the code

README

Summary

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

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

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

jackmoore/autosize

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

JavaScript

5,083

168 commits

updated Feb 15, 2023

See the code

README

Summary

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

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

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

Project health

Overall

2.1/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Latest release

6.0.1 · Feb 13, 2023

Releases this year

0

Significant stargazers

(top 24 of 29)

Enes Akar

212 followers · starred Apr 2015

Nolan Lawson

3,401 followers · starred Feb 2018

Hayden Bleasel

1,553 followers · starred Jul 2021

Mathieu Dutour

1,401 followers · starred Jun 2015