{"id":17835063,"url":"https://github.com/namesmt/nuxt-modern-cropper","last_synced_at":"2025-03-19T15:30:20.726Z","repository":{"id":231180761,"uuid":"781173989","full_name":"NamesMT/nuxt-modern-cropper","owner":"NamesMT","description":"Power-packed wrapper over `cropperjs`","archived":false,"fork":false,"pushed_at":"2025-03-02T15:44:26.000Z","size":714,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T08:21:27.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vue-modern-cropper.is-the.top/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NamesMT.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-02T22:05:35.000Z","updated_at":"2025-03-02T15:44:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"5879b023-f6c8-48f9-a519-cb41e40cd987","html_url":"https://github.com/NamesMT/nuxt-modern-cropper","commit_stats":null,"previous_names":["namesmt/nuxt-modern-cropper"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fnuxt-modern-cropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fnuxt-modern-cropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fnuxt-modern-cropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fnuxt-modern-cropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamesMT","download_url":"https://codeload.github.com/NamesMT/nuxt-modern-cropper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244453658,"owners_count":20455254,"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":[],"created_at":"2024-10-27T20:16:43.877Z","updated_at":"2025-03-19T15:30:20.721Z","avatar_url":"https://github.com/NamesMT.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuxt Modern Cropper\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n\nPower-packed wrapper over `cropperjs` (v2).\n\nThis package is a Nuxt module wrapper over [vue-modern-cropper](https://github.com/NamesMT/vue-modern-cropper), for more information and examples check it's repo.\n\n## Table of Contents\n\u003cdetails\u003e\n\n\u003csummary\u003eTOC\u003c/summary\u003e\n\n- [Nuxt Modern Cropper](#nuxt-modern-cropper)\n  - [Table of Contents](#table-of-contents)\n  - [Usage](#usage)\n    - [Install \\\u0026 Setup](#install--setup)\n  - [Contribution](#contribution)\n\n\u003c/details\u003e\n\n## Usage\n\n### Install \u0026 Setup\n```sh\npnpm add -D nuxt-modern-cropper vue-modern-cropper\n```\n\nAdd `nuxt-modern-cropper` to your Nuxt config file:\n\n```ts\n// nuxt.config.ts\nexport default defineNuxtConfig({\n  modules: [\n    'nuxt-modern-cropper',\n  ],\n})\n```\n\nThat's it! You can now use `\u003cModernCropper /\u003e` in your Nuxt app ✨\n\n\u003eTo infer the type of the component for `ref` creation, make sure to use `import type` to avoid build error, because the module is client-only.\n```ts\nimport type { ModernCropper } from '#components'\n\nconst cropperRef = ref\u003cInstanceType\u003ctypeof ModernCropper\u003e\u003e()\n```\n\n## Contribution\n\n\u003cdetails\u003e\n  \u003csummary\u003eLocal development\u003c/summary\u003e\n  \n  ```bash\n  # Install dependencies\n  npm install\n  \n  # Generate type stubs\n  npm run dev:prepare\n  \n  # Develop with the playground\n  npm run dev\n  \n  # Build the playground\n  npm run dev:build\n  \n  # Run ESLint\n  npm run lint\n  \n  # Run Vitest\n  npm run test\n  npm run test:watch\n  \n  # Release new version\n  npm run release\n  ```\n\n\u003c/details\u003e\n\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/nuxt-modern-cropper/latest.svg?style=flat\u0026colorA=020420\u0026colorB=00DC82\n[npm-version-href]: https://npmjs.com/package/nuxt-modern-cropper\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-modern-cropper.svg?style=flat\u0026colorA=020420\u0026colorB=00DC82\n[npm-downloads-href]: https://npmjs.com/package/nuxt-modern-cropper\n\n[license-src]: https://img.shields.io/npm/l/nuxt-modern-cropper.svg?style=flat\u0026colorA=020420\u0026colorB=00DC82\n[license-href]: https://npmjs.com/package/nuxt-modern-cropper\n\n[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js\n[nuxt-href]: https://nuxt.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Fnuxt-modern-cropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamesmt%2Fnuxt-modern-cropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Fnuxt-modern-cropper/lists"}