{"id":23929333,"url":"https://github.com/biennui1998mu/vuenos-upload-image","last_synced_at":"2026-05-03T17:31:15.378Z","repository":{"id":42233708,"uuid":"510658349","full_name":"biennui1998mu/vuenos-upload-image","owner":"biennui1998mu","description":"Component for upload Image","archived":false,"fork":false,"pushed_at":"2022-07-06T03:22:18.000Z","size":282,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T06:28:27.690Z","etag":null,"topics":["npm","npm-package","scss","typescript","upload-images","vue","vue3","vue3-component","vue3-composition-api","vue3-typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vuenos-upload-image","language":"Vue","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/biennui1998mu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-05T08:53:20.000Z","updated_at":"2022-07-07T02:20:53.000Z","dependencies_parsed_at":"2022-09-06T03:31:47.630Z","dependency_job_id":null,"html_url":"https://github.com/biennui1998mu/vuenos-upload-image","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"biennui1998mu/vuenos-template","purl":"pkg:github/biennui1998mu/vuenos-upload-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-upload-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-upload-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-upload-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-upload-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biennui1998mu","download_url":"https://codeload.github.com/biennui1998mu/vuenos-upload-image/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biennui1998mu%2Fvuenos-upload-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["npm","npm-package","scss","typescript","upload-images","vue","vue3","vue3-component","vue3-composition-api","vue3-typescript"],"created_at":"2025-01-05T23:16:23.054Z","updated_at":"2026-05-03T17:31:15.360Z","avatar_url":"https://github.com/biennui1998mu.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vuenos-upload-image\n\n\u003e description\n\n## Prerequisites\n\nThis project using NodeJS (version 16.10.0 or later) and NPM.\n[Node](http://nodejs.org/) and [NPM](https://npmjs.org/) are really easy to install.\nTo make sure you have them available on your machine,\ntry running the following command.\n\n```sh\n$ npm -v \u0026\u0026 node -v\n7.24.0\nv16.10.0\n```\n\n## Table of contents\n\n- [vuenos-upload-image](#vuenos-upload-image)\n  - [Prerequisites](#prerequisites)\n  - [Table of contents](#table-of-contents)\n  - [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [Import component](#import-component)\n    - [Upload image](#upload-image)\n    - [Preview image](#preview-image)\n  - [Variables binding](#variables-binding)\n  - [Versioning](#versioning)\n  - [Author](#author)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n## Installation\nTo install and set up the library, run:\n```sh\nnpm install vuenos-upload-image\n```\n\n## Usage\n\n### Import component\n```typescript\nimport VuenosUploadImage from \"vuenos-upload-image\";\n```\n\n```html\n\u003cvuenos-upload-image :imgListPreview=\"imgListPreview\"\n           :type=\"'upload'\"\n           :disabled=\"true\"\n           @getImgFileList=\"getImgFileList\"\u003e\n\u003c/vuenos-upload-image\u003e\n```\n\n### Upload image\n\n\u003e * Set ```type = 'upload'```\n\u003e * Get list of file image through function ```getImgFileList()```\n\n```typescript\nconst getImgFileList = (val) =\u003e {\n    console.log(val)\n}\n```\n\n* Example\n```html\n\u003cvuenos-upload-image :type=\"'upload'\"\n           @getImgFileList=\"getImgFileList\"\u003e\n\u003c/vuenos-upload-image\u003e\n```\n\n### Preview image\n\n\u003e * Set ```type = 'preview'```\n\u003e* Pass array of img path to ```:imgListPreview```\n\n```typescript\nconst imgListPreview = ref([]);\n```\n\n* Example\n\n```html\n\u003cvuenos-upload-image :type=\"'preview'\"\n           :imgListPreview=\"imgListPreview\"\u003e\n\u003c/vuenos-upload-image\u003e\n```\n\n### Variables binding\n\n| ATTRIBUTE      | DESCRIPTION                   |    REQUIRED     |   TYPE   |  ACCEPTED VALUE |   DEFAULT |\n|:---------------|:------------------------------|:---------------:|:--------:|----------------:|----------:|\n| imgListPreview | List of image want to show    | *(Only preview) |  Array   |                 |     empty | \n| type           | Type of use                   |        *        |  String  |  upload/preview |     empty |\n| getImgFileList | Function get image list       | *(Only upload)  | Function |                 |           |\n| disabled       | disable select img            |                 | Boolean  |      true/false |     false |\n| width          | width of component frame      |                 |  Number  |              90 |      75px |\n| maxImages      | max image can upload          |                 |  Number  |               3 |      9999 |\n| imageTypes     | image type can upload         |                 |  String  | '.jpg,.jpeg,..' | 'image/*' |\n| maxSize        | max size of each image upload |                 |  Number  |         8000000 |   8000000 |\n\n## Versioning\n\nv0.0.8\n\n## Author\n\n* **Sơn Nguyễn** - *Initial work* - [Sơn Nguyễn](https://github.com/biennui1998mu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiennui1998mu%2Fvuenos-upload-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiennui1998mu%2Fvuenos-upload-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiennui1998mu%2Fvuenos-upload-image/lists"}