{"id":13531715,"url":"https://github.com/marcreichel/alpine-autosize","last_synced_at":"2025-04-09T09:07:56.831Z","repository":{"id":42655576,"uuid":"458778257","full_name":"marcreichel/alpine-autosize","owner":"marcreichel","description":"Alpine.js plugin to automatically resize a textarea to fit its content.","archived":false,"fork":false,"pushed_at":"2024-05-29T14:08:50.000Z","size":142,"stargazers_count":97,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T12:11:37.542Z","etag":null,"topics":["alpine-js","alpinejs","autoresize","autosize","hacktoberfest","plugin","textarea","textarea-autoresize"],"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/marcreichel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["marcreichel"]}},"created_at":"2022-02-13T10:38:22.000Z","updated_at":"2024-10-11T08:47:55.000Z","dependencies_parsed_at":"2024-06-21T19:12:09.457Z","dependency_job_id":null,"html_url":"https://github.com/marcreichel/alpine-autosize","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.3125,"last_synced_commit":"7058e933c9bf1d0267cd19974cbff623292fc47b"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-autosize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-autosize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-autosize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcreichel%2Falpine-autosize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcreichel","download_url":"https://codeload.github.com/marcreichel/alpine-autosize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"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":["alpine-js","alpinejs","autoresize","autosize","hacktoberfest","plugin","textarea","textarea-autoresize"],"created_at":"2024-08-01T07:01:05.084Z","updated_at":"2025-04-09T09:07:56.811Z","avatar_url":"https://github.com/marcreichel.png","language":"JavaScript","funding_links":["https://github.com/sponsors/marcreichel"],"categories":["Extensions \u0026 Plugins"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e↕️ Alpine Autosize ↕️\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  A little \u003ca href=\"https://alpinejs.dev\"\u003eAlpine.js\u003c/a\u003e plugin to automatically resize a \u003ccode\u003etextarea\u003c/code\u003e to fit its content.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-autosize\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/tag/marcreichel/alpine-autosize?label=version\" alt=\"version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-autosize\"\u003e\n    \u003cimg src=\"https://img.badgesize.io/marcreichel/alpine-autosize/main/dist/alpine-autosize.js.svg?compression=gzip\u0026color=green\" alt=\"Build size\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-autosize\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/@marcreichel/alpine-autosize\" alt=\"downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.jsdelivr.com/package/npm/@marcreichel/alpine-autosize\"\u003e\n    \u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/@marcreichel/alpine-autosize/badge?style=rounded\" alt=\"JSDelivr\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@marcreichel/alpine-autosize\"\u003e\n    \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/marcreichel/alpine-autosize\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://gitmoji.dev/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 🚀 Installation\n\n### CDN\n\nInclude the following `\u003cscript\u003e` tag in the `\u003chead\u003e` of your document, just before Alpine.\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@marcreichel/alpine-autosize@latest/dist/alpine-autosize.min.js\" defer\u003e\u003c/script\u003e\n```\n\n### NPM\n\n```shell\nnpm install @marcreichel/alpine-autosize\n```\n\nAdd the `x-autosize` directive to your project by importing the package **before** starting Alpine.\n\n```js\nimport Alpine from 'alpinejs';\nimport Autosize from '@marcreichel/alpine-autosize';\n\nAlpine.plugin(Autosize);\n\nAlpine.start();\n```\n\n## 🪄 Usage\n\nTo let the `textarea` automatically resize, add the `x-data` and `x-autosize` directives to the `\u003ctextarea\u003e`.\n\n```html\n\u003ctextarea x-data x-autosize\u003e\u003c/textarea\u003e\n```\n\n## 📄 License\n\nCopyright (c) 2022 - 2023 Marc Reichel and contributors.\n\nLicensed under the MIT license, see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcreichel%2Falpine-autosize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcreichel%2Falpine-autosize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcreichel%2Falpine-autosize/lists"}