Socket
Socket
Sign inDemoInstall

autosize

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    autosize

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


Version published
Weekly downloads
558K
increased by3.32%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v.3.0.10 - 2015-09-10

  • Removed data attribute as a way of tracking which elements autosize has been assigned to. fixes #254, fixes #200.

Readme

Source

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
Install via Bower
bower install autosize
Browser compatibility
ChromeFirefoxIESafariiOS SafariAndroidOpera MiniWindows Phone IE
yesyes9yesyes4?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

Keywords

FAQs

Last updated on 10 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc