{"id":33091233,"url":"https://github.com/micjamking/Succinct","last_synced_at":"2025-11-16T14:00:45.212Z","repository":{"id":9656775,"uuid":"11594558","full_name":"micjamking/succinct","owner":"micjamking","description":"A tiny jQuery plugin for truncating multiple lines of text","archived":false,"fork":false,"pushed_at":"2018-04-24T20:09:43.000Z","size":43,"stargazers_count":477,"open_issues_count":12,"forks_count":65,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-10-22T16:33:18.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mikeking.io/succinct/","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/micjamking.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":"2013-07-22T23:07:08.000Z","updated_at":"2025-10-04T13:56:52.000Z","dependencies_parsed_at":"2022-09-10T02:24:16.569Z","dependency_job_id":null,"html_url":"https://github.com/micjamking/succinct","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/micjamking/succinct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micjamking%2Fsuccinct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micjamking%2Fsuccinct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micjamking%2Fsuccinct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micjamking%2Fsuccinct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micjamking","download_url":"https://codeload.github.com/micjamking/succinct/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micjamking%2Fsuccinct/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284719042,"owners_count":27052182,"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","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-11-14T18:00:23.174Z","updated_at":"2025-11-16T14:00:45.204Z","avatar_url":"https://github.com/micjamking.png","language":"JavaScript","readme":"Succinct\n========\n\n\u003e A *tiny* jQuery plugin for truncating multiple lines of text\n\n## How does it work?\nSuccinct shortens your text to a specified size, and then adds an ellipsis to the end.\n\n## Demo\nLive Demo: http://micjamking.github.io/succinct/\n\n## Usage\nSpecify the elements that you would like to truncate as a selector, and then set the size parameter to the amount you would like to see.\nFor example, if you would like to truncate all elements with a specific class, ie. `\u003cp class=\"truncate\"\u003e` to 120 characters...\n\n```html\n\u003cscript\u003e\n    $(function(){\n        $('.truncate').succinct({\n            size: 120\n        });\n    });\n\u003c/script\u003e\n```\nBy default, the plugin truncates text to 240 characters.\n\nTo change the ellipsis to an HTML unicode arrow \"\u0026rarr;\"...\n\n```html\n\u003cscript\u003e\n    $(function(){\n        $('.truncate').succinct({\n            omission: '\u0026rarr;'\n        });\n    });\n\u003c/script\u003e\n```\n\nBy default, the plugin also removes the set of 32 ASCII special characters at the end of words, ie. `! \" # $` and so on. To disable this behavior...\n\n```html\n\u003cscript\u003e\n    $(function(){\n        $('.truncate').succinct({\n            ignore: false\n        });\n    });\n\u003c/script\u003e\n```\n\n## Details\n* *Succinct is \u003c 0.6kb minified\n* You'll need a copy of [jQuery](http://code.jquery.com/jquery-latest.min.js) to run this plugin\n* Suggestions, comments, or creative insults: [add an issue](https://github.com/micjamking/succinct/issues/new) or [fork the repo](https://github.com/micjamking/succinct/fork).\n\n## Copyright\n[MIT license](http://opensource.org/licenses/MIT) Copyright (c) 2014 Mike King ([@micjamking](http://twitter.com/micjamking))\n","funding_links":[],"categories":["31. 文本处理 ##","31. 文本处理"],"sub_categories":["13.20 视差滚动(Parallax Scrolling) ###","24.3 Web Sockets"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicjamking%2FSuccinct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicjamking%2FSuccinct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicjamking%2FSuccinct/lists"}