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
522K
increased by3.88%
Maintainers
1
Install size
34.7 kB
Created
Weekly downloads
 

Changelog

Source

v.5.0.1 - 2021-06-30

  • Changed module field to point to new ESM bundle. Fixes #391, closes #393

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
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 30 Jun 2021

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc