autosize

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

  • Owner: jackmoore/autosize
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Browser compatibility

Chrome, Firefox, IE, Safari, iOS Safari, Android, Opera Mini, Windows Phone IE
------, --------, ----, --------, ------------, ---------, ------------, ------------------
yes, yes, 9, yes, yes, 4, ?, 8.1

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

Main metrics

Overview
Name With Ownerjackmoore/autosize
Primary LanguageJavaScript
Program languageHTML (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2011-11-06 19:21:21
Pushed At2023-02-15 07:30:24
Last Commit At2023-02-13 17:15:25
Release Count86
Last Release Name6.0.1 (Posted on )
First Release Name1.15.0 (Posted on 2013-01-17 12:22:43)
用户参与
Stargazers Count5.1k
Watchers Count122
Fork Count701
Commits Count238
Has Issues Enabled
Issues Count312
Issue Open Count22
Pull Requests Count34
Pull Requests Open Count5
Pull Requests Close Count60
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private