{"id":14973668,"url":"https://github.com/chip/vue-select-quantity","last_synced_at":"2026-02-28T21:31:15.765Z","repository":{"id":195691294,"uuid":"692153454","full_name":"chip/vue-select-quantity","owner":"chip","description":"This Vue 2 component was created for easily specifying a quantity, as is the case in a shopping cart.","archived":false,"fork":false,"pushed_at":"2024-01-06T04:22:50.000Z","size":63870,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T03:11:41.580Z","etag":null,"topics":["cart","component","component-library","javascript","menu","quantity","quantity-picker","select","shopping","shopping-cart","shoppingcart","vue","vue2","vuejs","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/chip.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}},"created_at":"2023-09-15T17:19:14.000Z","updated_at":"2024-01-05T23:55:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"f607a550-2c69-4c86-9825-fdda3995683a","html_url":"https://github.com/chip/vue-select-quantity","commit_stats":{"total_commits":154,"total_committers":1,"mean_commits":154.0,"dds":0.0,"last_synced_commit":"8d5eaa571838cef7c569c4a4522aba79e4b98370"},"previous_names":["chip/vue-select-quantity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chip/vue-select-quantity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fvue-select-quantity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fvue-select-quantity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fvue-select-quantity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fvue-select-quantity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chip","download_url":"https://codeload.github.com/chip/vue-select-quantity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fvue-select-quantity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29952243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cart","component","component-library","javascript","menu","quantity","quantity-picker","select","shopping","shopping-cart","shoppingcart","vue","vue2","vuejs","vuejs2"],"created_at":"2024-09-24T13:49:11.022Z","updated_at":"2026-02-28T21:31:15.741Z","avatar_url":"https://github.com/chip.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueSelectQuantity component\n\nThis Vue 2 component was created for easily specifying a quantity, as is the case in a shopping cart.\n\n![VueSelectQuantity Demo](https://github.com/chip/vue-select-quantity/blob/master/Demo.gif)\n\n## How to install\n\n\n### NPM\n```bash\nnpm install @chipcastle.com/vue-select-quantity\n```\n\n### PNPM\n```bash\npnpm install @chipcastle.com/vue-select-quantity\n```\n\n## Basic Usage\n\n### src/App.vue\n\n```html\n\u003ctemplate\u003e\n  \u003cVueSelectQuantity\n    :value=\"quantity\"\n    data-id=\"vsq-1\"\n    @update:quantity=\"update($event)\"\n    @remove:quantity=\"remove($event)\"\n  /\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nimport { VueSelectQuantity } from '@chipcastle.com/vue-select-quantity'\nimport '../node_modules/@chipcastle.com/vue-select-quantity/dist/style.css'\n\nexport default {\n  name: 'App',\n  components: {\n    VueSelectQuantity\n  },\n  data () {\n    return {\n      quantity: 1\n    }\n  },\n  methods: {\n    update (evt) {\n      const { id, qty } = evt\n      if (qty) {\n        this.quantity = qty\n      }\n      console.log(`update event received for id ${id} with quantity ${this.quantity}`)\n    },\n    remove (id) {\n      console.log(`remove event received for id ${id}`)\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n## Props\n\n| Property name | Type | Default | Description |\n| ------------- | ---- | ------- | ----------- |\n| v-model | Number | null | A required property which represents the quantity to be updated |\n| data-id | String | null | A data property to identify the component instance |\n\n## Events\n\n| Event name | Trigger |\n| ------------- | ---- |\n| update:quantity | Called when the quantity is changed (e.g., 1-9 is selected from the menu, Update button is clicked). Event object sent includes `id` and `qty` properties.|\n| remove:quantity | Called when the 0 is selected from the menu) |\n\n## Developers\n\nFork the project and enter the following commands:\n\n    git clone https://github.com/YOUR_GITHUB_USERNAME/vue-select-quantity.git\n    cd vue-select-quantity\n    npm install (for dependencies)\n    npm run dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchip%2Fvue-select-quantity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchip%2Fvue-select-quantity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchip%2Fvue-select-quantity/lists"}