{"id":13424229,"url":"https://github.com/rascada/vue-round-filter","last_synced_at":"2025-03-15T18:34:18.630Z","repository":{"id":65412448,"uuid":"49830299","full_name":"rascada/vue-round-filter","owner":"rascada","description":"as above","archived":false,"fork":false,"pushed_at":"2020-03-22T00:10:57.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T01:35:10.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rascada.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":"2016-01-17T18:43:31.000Z","updated_at":"2020-03-22T00:10:59.000Z","dependencies_parsed_at":"2023-01-22T08:05:43.204Z","dependency_job_id":null,"html_url":"https://github.com/rascada/vue-round-filter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rascada%2Fvue-round-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rascada%2Fvue-round-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rascada%2Fvue-round-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rascada%2Fvue-round-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rascada","download_url":"https://codeload.github.com/rascada/vue-round-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775789,"owners_count":20346262,"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-07-31T00:00:50.440Z","updated_at":"2025-03-15T18:34:13.614Z","avatar_url":"https://github.com/rascada.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)","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# vue-round-filter\n#### round number with whichever decimal accuracy\n\n## installation\n\n```javascript\nconst round = require('vue-round-filter');\n```\n```javascript\nnew Vue({\n  filters: {\n    round,\n  },\n});\n```\n## usage\n```javascript\nlet pi = 3.14159265359;\n```\n```html\n\u003cspan\u003e {{ pi | round }} \u003c/span\u003e\n\u003cspan\u003e 3 \u003c/span\u003e\n\n\u003cspan\u003e {{ pi | round(2) }} \u003c/span\u003e\n\u003cspan\u003e 3.14 \u003c/span\u003e\n```\nIf you're need to keep decimal accuracy, pass `true` as second argument\n\n```javascript\nlet int = 3;\n```\n```html\n\u003cspan\u003e {{ int | round(3) }} \u003c/span\u003e\n\u003cspan\u003e 3 \u003c/span\u003e\n\n\u003cspan\u003e {{ int | round(3, true) }} \u003c/span\u003e\n\u003cspan\u003e 3.000 \u003c/span\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frascada%2Fvue-round-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frascada%2Fvue-round-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frascada%2Fvue-round-filter/lists"}