{"id":26472633,"url":"https://github.com/kevinleedrum/v-resizable","last_synced_at":"2025-09-12T22:36:14.653Z","repository":{"id":57389824,"uuid":"348909901","full_name":"kevinleedrum/v-resizable","owner":"kevinleedrum","description":"Vue directive for making an element resizable","archived":false,"fork":false,"pushed_at":"2021-03-23T02:20:20.000Z","size":72,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T04:35:13.586Z","etag":null,"topics":["directive","plugin","resizable","resize","vue","vue-plugin","vue2","vue3","vuejs","vuejs2","vuejs3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/kevinleedrum.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}},"created_at":"2021-03-18T02:01:20.000Z","updated_at":"2025-04-28T10:49:20.000Z","dependencies_parsed_at":"2022-09-02T10:50:25.699Z","dependency_job_id":null,"html_url":"https://github.com/kevinleedrum/v-resizable","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kevinleedrum/v-resizable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinleedrum%2Fv-resizable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinleedrum%2Fv-resizable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinleedrum%2Fv-resizable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinleedrum%2Fv-resizable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinleedrum","download_url":"https://codeload.github.com/kevinleedrum/v-resizable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinleedrum%2Fv-resizable/sbom","scorecard":{"id":557173,"data":{"date":"2025-08-11","repo":{"name":"github.com/kevinleedrum/v-resizable","commit":"b1e83dae4fc789bfc56402758aa978f2e63ec64a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T12:41:08.950Z","repository_id":57389824,"created_at":"2025-08-20T12:41:08.950Z","updated_at":"2025-08-20T12:41:08.950Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274757962,"owners_count":25343863,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["directive","plugin","resizable","resize","vue","vue-plugin","vue2","vue3","vuejs","vuejs2","vuejs3"],"created_at":"2025-03-19T21:35:27.870Z","updated_at":"2025-09-12T22:36:14.455Z","avatar_url":"https://github.com/kevinleedrum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v-resizable\n\n[![Vue 2.x](https://img.shields.io/badge/Vue-2.x-brightgreen.svg)](https://vuejs.org/v2/guide/)\n[![Vue 3.x](https://img.shields.io/badge/Vue-3.x-brightgreen.svg)](https://v3.vuejs.org/guide/)\n[![npm](https://img.shields.io/npm/v/v-resizable.svg)](https://www.npmjs.com/package/v-resizable)\n![minified size](https://img.shields.io/bundlephobia/min/v-resizable?label=minified%20size\u0026style=flat)\n[![license](https://img.shields.io/github/license/kevinleedrum/v-resizable)](https://github.com/kevinleedrum/v-resizable/blob/main/LICENSE)\n\nThis Vue (2.x / 3.x) plugin adds a `v-resizable` directive to make an element resizable. Unlike the CSS `resize` property, the element may be resized from any side or corner, and a `resize` event is emitted.\n\n🚀 [Live Demo](https://codepen.io/kevinleedrum/pen/OJbKPYE)\n\n## Installation \u0026 Usage\n\nInstall the package using npm/yarn.\n\n```bash\nnpm i v-resizable --save\n```\n\nAdd the plugin to your app.\n\n```ts\n// main.js / main.ts\n\nimport VResizable from 'v-resizable'\n\nVue.use(VResizable)\n```\n\nAdd the directive to an element.\n\n```html\n\u003c!-- Component.vue --\u003e\n\n\u003cdiv v-resizable\u003e\u003c/div\u003e\n```\n\n## Including as a Script\n\nAlternatively, you can include `v-resizable` alongside `vue` using `script` tags.\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vue\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/v-resizable\"\u003e\u003c/script\u003e\n```\n\n## Options\n\n### Handles\n\nYou can set which handles are available for resizing by adding modifiers to the directive.\n\n```html\n\u003c!-- only allow resizing the width via the left and right edges --\u003e\n\u003cdiv v-resizable.l.r\u003e\u003c/div\u003e\n\n\u003c!-- only allow resizing from the bottom-right corner --\u003e\n\u003cdiv v-resizable.br\u003e\u003c/div\u003e\n\n\u003c!-- enable all handles; this is the same as providing no modifiers --\u003e\n\u003cdiv v-resizable.t.r.b.l.tr.br.bl.tl\u003e\u003c/div\u003e\n```\n\n### Constrain the width and height\n\nYou can specify a `minWidth`, `maxWidth`, `minHeight`, and `maxHeight` in pixels.\n\n```html\n\u003cdiv\n  v-resizable=\"{ minWidth: 300, minHeight: 300, maxWidth: 1000, maxHeight: 1000 }\"\n\u003e\u003c/div\u003e\n```\n\n### Modify the handle areas\n\nIf necessary, you can change the pixel width/height of the invisible handles (_default: 12_), as well as their `z-index` (_default: 100_).\n\n```html\n\u003cdiv v-resizable=\"{ handleWidth: 16, handleZIndex: 1000 }\"\u003e\u003c/div\u003e\n```\n\n## Overriding Defaults\n\nTo avoid having to repeat the same option values in your app, you can override the default values.\n\nWhen using `Vue.use`, pass the default values as the second argument.\n\n```ts\n// main.js / main.ts\n\nVue.use(VResizable, {\n  handles: ['l', 'r'],\n  minWidth: 300,\n  minHeight: 300,\n  maxWidth: 1000,\n  maxHeight: 1000,\n  handleWidth: 16,\n  handleZIndex: 1000,\n})\n```\n\nWhen including `v-resizable` as a global script, you can instead call `VResizable.setDefaults`. Be sure to set defaults _before_ creating your Vue instance.\n\n```js\nVResizable.setDefaults({\n  handles: ['l', 'r'],\n  minWidth: 300,\n  minHeight: 300,\n  maxWidth: 1000,\n  maxHeight: 1000,\n  handleWidth: 16,\n  handleZIndex: 1000,\n})\n```\n\n## Listening for `resize` Events\n\nThe `v-resizable` directive also implements emitting `resize` events.\n\n```html\n\u003cdiv v-resizable @resize=\"myResizeHandlerMethod\"\u003e\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinleedrum%2Fv-resizable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinleedrum%2Fv-resizable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinleedrum%2Fv-resizable/lists"}