{"id":13536237,"url":"https://github.com/imcvampire/vue-truncate-filter","last_synced_at":"2025-04-14T08:21:55.907Z","repository":{"id":65412460,"uuid":"65781941","full_name":"imcvampire/vue-truncate-filter","owner":"imcvampire","description":"A filter for Vuejs to truncate string","archived":false,"fork":false,"pushed_at":"2018-04-22T18:54:19.000Z","size":20,"stargazers_count":57,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T22:01:31.143Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","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/imcvampire.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":"2016-08-16T02:45:51.000Z","updated_at":"2023-06-17T19:29:13.000Z","dependencies_parsed_at":"2023-01-22T08:05:37.748Z","dependency_job_id":null,"html_url":"https://github.com/imcvampire/vue-truncate-filter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-truncate-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-truncate-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-truncate-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-truncate-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcvampire","download_url":"https://codeload.github.com/imcvampire/vue-truncate-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637833,"owners_count":21137538,"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":["hacktoberfest"],"created_at":"2024-08-01T09:00:36.317Z","updated_at":"2025-04-14T08:21:55.877Z","avatar_url":"https://github.com/imcvampire.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","PC端"],"readme":"# vue-truncate-filter\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/imcvampire/vue-truncate-filter.svg)](https://greenkeeper.io/)\n\nA filter for Vuejs to truncate string\n\n## Install:\n\n### CommonJS\n\n Available through npm as `vue-truncate-filter`: `npm install vue-truncate-filter --save`\n\n  ``` js\n  var VueTruncate = require('vue-truncate-filter')\n  Vue.use(VueTruncate)\n  ```\n\n### Direct include\n\n - You can also directly include it with a `\u003cscript\u003e` tag when you have Vue already included globally. It will automatically install itself, and will add a global `VueTruncate`.\n\n## Usage:\n\n### Vue 1.x\n ```html\n  {{ text | truncate 100 '....' }}\n ```\n### Vue 2.x\n ```html\n  {{ text | truncate(100) }}\n ```\n## Params:\n- length (Number): Text will be truncated if it's length is more than this param.\n  \n- clamp (String) (default: `...`): It will be added to end of text if it's truncated.\n  \n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcvampire%2Fvue-truncate-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcvampire%2Fvue-truncate-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcvampire%2Fvue-truncate-filter/lists"}