{"id":24053141,"url":"https://github.com/sderosiaux/text-ellipsis","last_synced_at":"2025-10-28T23:16:48.890Z","repository":{"id":65412356,"uuid":"42482319","full_name":"sderosiaux/text-ellipsis","owner":"sderosiaux","description":"Cut off a string if too long","archived":false,"fork":false,"pushed_at":"2015-09-21T12:44:20.000Z","size":160,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T13:25:50.433Z","etag":null,"topics":["cut","javascript","text-ellipsis"],"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/sderosiaux.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":"2015-09-14T23:12:51.000Z","updated_at":"2019-05-16T13:08:36.000Z","dependencies_parsed_at":"2023-01-22T07:55:23.839Z","dependency_job_id":null,"html_url":"https://github.com/sderosiaux/text-ellipsis","commit_stats":null,"previous_names":["chtefi/text-ellipsis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sderosiaux/text-ellipsis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sderosiaux%2Ftext-ellipsis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sderosiaux%2Ftext-ellipsis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sderosiaux%2Ftext-ellipsis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sderosiaux%2Ftext-ellipsis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sderosiaux","download_url":"https://codeload.github.com/sderosiaux/text-ellipsis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sderosiaux%2Ftext-ellipsis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272423868,"owners_count":24932890,"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-08-28T02:00:10.768Z","response_time":74,"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":["cut","javascript","text-ellipsis"],"created_at":"2025-01-09T02:23:24.544Z","updated_at":"2025-10-28T23:16:43.831Z","avatar_url":"https://github.com/sderosiaux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text-ellipsis [![Build Status](https://travis-ci.org/chtefi/text-ellipsis.svg)](https://travis-ci.org/chtefi/text-ellipsis)\n\u003e Cut off a string if too long\n\n## Why\n\nYou always want to cut off long strings.\n\n## Install\n\n```shell\n$ npm install --save text-ellipsis\n```\n\n## Usage\n\n```js\nvar ellipsis = require('text-ellipsis');\n\nvar short = ellipsis('a very long text', 10);\nconsole.log(short);\n// \"a very ...\"\n\nvar short = ellipsis('a very long text', 10, { side: 'start' });\nconsole.log(short);\n// \"...ng text\"\n\nvar short = ellipsis('a very long text', 10, { ellipsis: ' END' });\nconsole.log(short);\n// \"a very END\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsderosiaux%2Ftext-ellipsis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsderosiaux%2Ftext-ellipsis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsderosiaux%2Ftext-ellipsis/lists"}