{"id":16266492,"url":"https://github.com/donnikitos/react-component-truncated","last_synced_at":"2026-05-06T18:31:28.289Z","repository":{"id":143905034,"uuid":"458153828","full_name":"donnikitos/react-component-truncated","owner":"donnikitos","description":"Purely stylistic React.JS component to truncate long strings, like crypto addresses.","archived":false,"fork":false,"pushed_at":"2023-07-25T09:06:54.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T14:21:19.282Z","etag":null,"topics":["crypto","cryptocoins","react","react-component","reactjs","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-component-truncated","language":"TypeScript","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/donnikitos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-11T11:10:22.000Z","updated_at":"2022-02-21T18:33:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"db5c19b9-6096-403a-a4b1-d7c6aafcbf13","html_url":"https://github.com/donnikitos/react-component-truncated","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/donnikitos/react-component-truncated","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donnikitos%2Freact-component-truncated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donnikitos%2Freact-component-truncated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donnikitos%2Freact-component-truncated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donnikitos%2Freact-component-truncated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donnikitos","download_url":"https://codeload.github.com/donnikitos/react-component-truncated/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donnikitos%2Freact-component-truncated/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274101782,"owners_count":25222446,"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-09-07T02:00:09.463Z","response_time":67,"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":["crypto","cryptocoins","react","react-component","reactjs","typescript"],"created_at":"2024-10-10T17:42:09.746Z","updated_at":"2026-05-06T18:31:28.221Z","avatar_url":"https://github.com/donnikitos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Component - `\u003cTruncated /\u003e`\n\n![npm](https://img.shields.io/npm/dt/react-component-truncated?style=for-the-badge)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/react-component-truncated?style=for-the-badge)\n![GitHub issues](https://img.shields.io/github/issues/donnikitos/react-clickAway?style=for-the-badge)\n\u003c/br\u003e\n\u003c/br\u003e\n\n![node-current](https://img.shields.io/node/v/react-component-truncated?color=green\u0026style=for-the-badge)\n![GitHub package.json dependency version (dev dep on branch)](https://img.shields.io/github/package-json/dependency-version/donnikitos/react-component-truncated/dev/typescript/master?color=blue\u0026style=for-the-badge)\n\nA stylistic component to crop long texts, but still show the beginning and the end.\nPretty useful to display crypto tokens or crypto addresses and hashes.\n\nInstall with [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/):\n\n```bash\n# via npm\nnpm install react-component-truncated\n\n# via yarn\nyarn add react-component-truncated\n```\n\n## Usage\n\nUse just as a normal HTML element, with the to be truncated contents between the tags.\nAccepts all props and attributes of a normal HTMLDivElement.\n\n### Example\n\n```typescript\nimport Truncated from 'react-component-truncated';\n\n// use in Component\nfunction App(props) {\n\treturn (\n\t\t\u003c\u003e\n\t\t\tThis ETH wallet address needs to be truncated:{' '}\n\t\t\t\u003cTruncated style={{ width: 210 }}\u003e\n\t\t\t\t0x86F03eBCE80128d1C815b7729AeE4ADE12a77e8A\n\t\t\t\u003c/Truncated\u003e\n\t\t\u003c/\u003e\n\t);\n}\n```\n\n## License\n\n[MIT](LICENSE) Copyright (c) 2021 Nikita 'donnikitos' Nitichevski.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonnikitos%2Freact-component-truncated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonnikitos%2Freact-component-truncated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonnikitos%2Freact-component-truncated/lists"}