autosize
Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.
Last updated 2 years ago by jacklmoore .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install autosize 
SYNC missed versions from official npm registry.

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

Current Tags

  • 4.0.2                                ...           latest (2 years ago)

27 Versions

  • 4.0.2                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.21                                ...           3 years ago
  • 3.0.20                                ...           4 years ago
  • 3.0.19                                ...           4 years ago
  • 3.0.18                                ...           4 years ago
  • 3.0.17                                ...           4 years ago
  • 3.0.16                                ...           4 years ago
  • 3.0.15                                ...           4 years ago
  • 3.0.14                                ...           5 years ago
  • 3.0.13                                ...           5 years ago
  • 3.0.12                                ...           5 years ago
  • 3.0.11                                ...           5 years ago
  • 3.0.10                                ...           5 years ago
  • 3.0.9                                ...           5 years ago
  • 3.0.8                                ...           5 years ago
  • 3.0.7                                ...           5 years ago
  • 3.0.6                                ...           5 years ago
  • 3.0.5                                ...           5 years ago
  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 1.18.13                                ...           6 years ago
Maintainers (1)
Downloads
Today 17
This Week 3,392
This Month 2,106
Last Day 222
Last Week 2,804
Last Month 14,588
Dependencies (0)
None
Dev Dependencies (7)
Dependents (366)

Copyright 2014 - 2017 © taobao.org |