{"id":15353763,"url":"https://github.com/westonganger/input-autogrow","last_synced_at":"2025-04-15T05:57:24.998Z","repository":{"id":57274271,"uuid":"66154832","full_name":"westonganger/input-autogrow","owner":"westonganger","description":"jQuery plugin for autogrowing inputs","archived":false,"fork":false,"pushed_at":"2022-09-01T15:48:51.000Z","size":55,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T16:42:42.847Z","etag":null,"topics":["autogrow","autogrowing-inputs","autosize","html","html-forms","html-input","input","jquery"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/westonganger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-20T15:49:33.000Z","updated_at":"2024-07-23T14:52:45.000Z","dependencies_parsed_at":"2022-08-31T00:30:38.798Z","dependency_job_id":null,"html_url":"https://github.com/westonganger/input-autogrow","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Finput-autogrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Finput-autogrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Finput-autogrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Finput-autogrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonganger","download_url":"https://codeload.github.com/westonganger/input-autogrow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514228,"owners_count":21116903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autogrow","autogrowing-inputs","autosize","html","html-forms","html-input","input","jquery"],"created_at":"2024-10-01T12:15:07.857Z","updated_at":"2025-04-15T05:57:24.981Z","avatar_url":"https://github.com/westonganger.png","language":"JavaScript","funding_links":["https://ko-fi.com/A5071NK'"],"categories":[],"sub_categories":[],"readme":"# input-autogrow\n\u003ca href=\"https://badge.fury.io/js/input-autogrow\" target=\"_blank\"\u003e\u003cimg height=\"21\" style='border:0px;height:21px;' border='0' src=\"https://badge.fury.io/js/input-autogrow.svg\" alt=\"NPM Version\"\u003e\u003c/a\u003e\n\u003ca href='https://www.npmjs.org/package/input-autogrow' target='_blank'\u003e\u003cimg height='21' style='border:0px;height:21px;' src='https://img.shields.io/npm/dt/input-autogrow.svg?label=NPM+Downloads' border='0' alt='NPM Downloads' /\u003e\u003c/a\u003e\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='22' style='border:0px;height:22px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /\u003e\u003c/a\u003e \n\nInput-Autogrow is a plugin for autogrowing inputs. This plugin is different from others because most usually target `textarea` tags, this library is instead targeted at `input` tags.\n\nRequires a DOM library such as jQuery, Zepto, or any that supports `$.fn` plugins.\n\n# Demo\n\nhttps://jsfiddle.net/xpvt214o/50743/\n\n# Install\n\n#### NPM, Yarn, or Bower\n```\nnpm install input-autogrow\n\nyarn add input-autogrow\n\nbower install input-autogrow\n```\n\n#### CDN\n\n```\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/input-autogrow/1.1.1/input-autogrow.min.js\"\u003e\u003c/script\u003e\n```\n\n#### Rails-Assets\n```ruby\n# Gemfile\nsource 'https://rails-assets.org' do\n  gem 'rails-assets-input-autogrow'\nend\n\n\n# app/assets/javascripts/application.js\n/*\n *= require input-autogrow\n */\n```\n\n# Usage\n```javascript\n/* Makes input elements autogrow */\n$('input.autogrow').inputAutogrow();\n\n/* Manually trigger update */\n$('input.autogrow').trigger('autogrow');\n/* or */\n$('input.autogrow').trigger('change');\n\n/* Custom Options */\n$('input.autogrow').inputAutogrow({maxWidth: 500, minWidth: 25, trailingSpace: 10});\n\n/* Remove autogrow from input */\n$('input.autogrow').inputAutogrow('destroy');\n\n/* If the parent container width is changed (and maxWidth is not specified)\n   OR the options need to be changed, then you must destroy \u0026 re-initialize inputAutogrow */\n$('input.autogrow').inputAutogrow('destroy');\n$('input.autogrow').inputAutogrow();\n```\n\n# Options\n`maxWidth` - The max width of the autogrow - Defaults to the inputs parent width\n\n`minWidth` - The min width of the autogrow - Defaults to the inputs original input start width\n\n`trailingSpace` - This is extra spacing at the end of the input which is used until the maxWidth is hit - Default: `0`\n\n# Contributing\n- Only edit js files from `src/` and `test/` folders.\n- To run tests: `npm run test`\n- Remember to run `gulp` to run the dist build after your done adding and testing your changes.\n\n# Credits\nCreated \u0026 Maintained by Weston Ganger - [@westonganger](https://github.com/westonganger)\n\nOriginally based on this [Stackoverflow answer](http://stackoverflow.com/questions/931207) by James Padolsey\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Finput-autogrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonganger%2Finput-autogrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Finput-autogrow/lists"}