{"id":13515332,"url":"https://github.com/ShinyChang/React-Text-Truncate","last_synced_at":"2025-03-31T04:36:56.519Z","repository":{"id":43728565,"uuid":"43565190","full_name":"ShinyChang/React-Text-Truncate","owner":"ShinyChang","description":"Truncate multi-lines text for all browsers base on react.js","archived":false,"fork":false,"pushed_at":"2023-01-04T21:49:40.000Z","size":4046,"stargazers_count":326,"open_issues_count":24,"forks_count":60,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-24T20:48:44.169Z","etag":null,"topics":["ellipsis","multiline","react","truncate"],"latest_commit_sha":null,"homepage":"http://ShinyChang.github.io/React-Text-Truncate/","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/ShinyChang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ShinyChang"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-10-02T16:58:24.000Z","updated_at":"2024-10-17T16:45:06.000Z","dependencies_parsed_at":"2023-02-02T21:15:24.638Z","dependency_job_id":null,"html_url":"https://github.com/ShinyChang/React-Text-Truncate","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShinyChang%2FReact-Text-Truncate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShinyChang%2FReact-Text-Truncate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShinyChang%2FReact-Text-Truncate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShinyChang%2FReact-Text-Truncate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShinyChang","download_url":"https://codeload.github.com/ShinyChang/React-Text-Truncate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418657,"owners_count":20773934,"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":["ellipsis","multiline","react","truncate"],"created_at":"2024-08-01T05:01:09.647Z","updated_at":"2025-03-31T04:36:53.243Z","avatar_url":"https://github.com/ShinyChang.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ShinyChang"],"categories":["JavaScript"],"sub_categories":[],"readme":"# React-Truncate-Text [![npm version](https://badge.fury.io/js/react-text-truncate.svg)](https://badge.fury.io/js/react-text-truncate)\n\n## Install\n\n```\nnpm install react-text-truncate\n```\n\n## Usage\n\n```js\nimport TextTruncate from 'react-text-truncate'; // recommend\nvar TextTruncate = require('react-text-truncate'); // CommonJS or UMD\n```\n\n## Markup\n\n```jsx\n\u003cTextTruncate\n    line={1}\n    element=\"span\"\n    truncateText=\"…\"\n    text=\"Lorem Ipsum is simply dummy text of the printing and typesetting industry.\"\n    textTruncateChild={\u003ca href=\"#\"\u003eRead on\u003c/a\u003e}\n/\u003e\n```\n\n[Demo](http://shinychang.github.io/React-Text-Truncate/)\n\n## FAQ\n\n1. Why TextTruncate not shown after display changed?\n\n    You must trigger update manually.\n\n2. Will TextTruncate support IE10 or below?\n\n    No! IE 10 and below are dead according to [Microsoft post](https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShinyChang%2FReact-Text-Truncate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShinyChang%2FReact-Text-Truncate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShinyChang%2FReact-Text-Truncate/lists"}