{"id":22404637,"url":"https://github.com/xlsdg/vue-odometer","last_synced_at":"2025-07-31T17:32:40.118Z","repository":{"id":43038574,"uuid":"77966931","full_name":"xlsdg/vue-odometer","owner":"xlsdg","description":"Vue.js(v2.x+) component wrap for Odometer.js","archived":false,"fork":false,"pushed_at":"2019-08-20T13:12:39.000Z","size":121,"stargazers_count":63,"open_issues_count":3,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-24T22:01:26.410Z","etag":null,"topics":["odometer","vue","vue-component","vue-odometer"],"latest_commit_sha":null,"homepage":"http://github.hubspot.com/odometer/docs/welcome/","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/xlsdg.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":"2017-01-04T01:05:50.000Z","updated_at":"2023-09-06T02:08:24.000Z","dependencies_parsed_at":"2022-09-09T17:00:37.453Z","dependency_job_id":null,"html_url":"https://github.com/xlsdg/vue-odometer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlsdg%2Fvue-odometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlsdg%2Fvue-odometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlsdg%2Fvue-odometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlsdg%2Fvue-odometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlsdg","download_url":"https://codeload.github.com/xlsdg/vue-odometer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228275007,"owners_count":17895008,"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":["odometer","vue","vue-component","vue-odometer"],"created_at":"2024-12-05T10:14:16.845Z","updated_at":"2024-12-05T10:14:17.952Z","avatar_url":"https://github.com/xlsdg.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# vue-odometer\n\n\u003e Vue.js(v2.x+) component wrap for Odometer.js\n\n\n## Installation\n\n``` bash\n$ npm install --save odometer vue-odometer\n```\n\n\n## Usage\n\n``` vue\n\u003ctemplate\u003e\n  \u003cIOdometer\n    class=\"iOdometer\"\n    :value=\"num\"\n  /\u003e\n\u003c/template\u003e\n\n\u003cscript type=\"text/babel\"\u003e\n  import IOdometer from 'vue-odometer';\n  import 'odometer/themes/odometer-theme-default.css';\n\n  export default {\n    name: 'view',\n    components: {\n      IOdometer\n    },\n    data() {\n      return {\n        num: 999999\n      };\n    },\n    mounted() {\n      const that = this;\n      setInterval(function() {\n        that.num += 1;\n      }, 3000);\n    }\n  };\n\u003c/script\u003e\n\n\u003cstyle scoped\u003e\n  .iOdometer {\n    font-size: 2em;\n    margin: 0;\n  }\n\u003c/style\u003e\n```\n\n## Properties\n\n* `value` **[Number]**\n\n  Optional; `0` by defualt.\n\n* `format` **[String]**\n\n  Optional;\n\n* `theme` **[String]**\n\n  Optional; `default` by defualt.\n\n* `duration` **[Number]**\n\n  Optional;\n\n* `animation` **[String]**\n\n  Optional;\n\n* `formatFunction` **[Function]**\n\n  Optional;\n\nSee more [Odometer.js](http://github.hubspot.com/odometer/)\n\n\n## Methods\n\n* `renderInside`\n* `watchForMutations`\n* `startWatchingMutations`\n* `stopWatchingMutations`\n* `cleanValue`\n* `bindTransitionEnd`\n* `resetFormat`\n* `renderDigit`\n* `formatDigits`\n* `insertDigit`\n* `addDigit`\n* `addSpacer`\n* `animate`\n* `animateCount`\n* `getDigitCount`\n* `getFractionalDigitCount`\n* `resetDigits`\n* `animateSlide`\n* `render`\n* `update`\n\nLearn more [Odometer.js](http://github.hubspot.com/odometer/)\n\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlsdg%2Fvue-odometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlsdg%2Fvue-odometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlsdg%2Fvue-odometer/lists"}