{"id":20603,"name":"@stdlib/string-truncate","description":"Truncate a string to a specified length.","url":"https://github.com/stdlib-js/string-truncate","last_synced_at":"2025-09-05T00:39:41.914Z","repository":{"id":41398090,"uuid":"406499598","full_name":"stdlib-js/string-truncate","owner":"stdlib-js","description":"Truncate a string to a specified length.","archived":false,"fork":false,"pushed_at":"2025-05-12T01:00:56.000Z","size":1248,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-16T06:56:04.712Z","etag":null,"topics":["javascript","node","node-js","nodejs","pad","short","shorten","stdlib","str","string","trunc","truncate","util","utilities","utility","utils"],"latest_commit_sha":null,"homepage":"https://github.com/stdlib-js/stdlib","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdlib-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"created_at":"2021-09-14T19:39:32.000Z","updated_at":"2025-05-12T00:42:40.000Z","dependencies_parsed_at":"2023-02-17T08:18:47.053Z","dependency_job_id":"b2225a82-6597-4ba9-959f-d109704f2ec0","html_url":"https://github.com/stdlib-js/string-truncate","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"c279ae9f485afdbc884edf5a02e0db20324e2651"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/stdlib-js/string-truncate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/sbom","scorecard":{"id":849669,"data":{"date":"2025-08-11","repo":{"name":"github.com/stdlib-js/string-truncate","commit":"25e8fa74ba75917daf6ec781a49fe5b79bf64913"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/benchmark.yml:1","Warn: no topLevel permission defined: .github/workflows/cancel.yml:1","Warn: no topLevel permission defined: .github/workflows/close_pull_requests.yml:1","Warn: no topLevel permission defined: .github/workflows/examples.yml:1","Warn: no topLevel permission defined: .github/workflows/npm_downloads.yml:1","Warn: no topLevel permission defined: .github/workflows/productionize.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/publish_cli.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/test_bundles.yml:1","Warn: no topLevel permission defined: .github/workflows/test_coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/test_install.yml:1","Warn: no topLevel permission defined: .github/workflows/test_published_package.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/productionize.yml:274: update your workflow using https://app.stepsecurity.io/secureworkflow/stdlib-js/string-truncate/productionize.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/productionize.yml:448: update your workflow using https://app.stepsecurity.io/secureworkflow/stdlib-js/string-truncate/productionize.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/productionize.yml:456: update your workflow using https://app.stepsecurity.io/secureworkflow/stdlib-js/string-truncate/productionize.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/productionize.yml:621: update your workflow using https://app.stepsecurity.io/secureworkflow/stdlib-js/string-truncate/productionize.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/productionize.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/stdlib-js/string-truncate/productionize.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/benchmark.yml:58","Warn: npmCommand not pinned by hash: .github/workflows/benchmark.yml:58","Warn: npmCommand not pinned by hash: .github/workflows/benchmark.yml:58","Warn: npmCommand not pinned by hash: .github/workflows/examples.yml:58","Warn: npmCommand not pinned by hash: .github/workflows/examples.yml:58","Warn: npmCommand not pinned by hash: .github/workflows/examples.yml:58","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:615","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:615","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:615","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:794","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:794","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:794","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:156","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:156","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:156","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:164","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:268","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:268","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:268","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:435","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:435","Warn: npmCommand not pinned by hash: .github/workflows/productionize.yml:435","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:76","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:76","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:76","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:83","Warn: npmCommand not pinned by hash: .github/workflows/test_bundles.yml:72","Warn: npmCommand not pinned by hash: .github/workflows/test_coverage.yml:67","Warn: npmCommand not pinned by hash: .github/workflows/test_coverage.yml:67","Warn: npmCommand not pinned by hash: .github/workflows/test_coverage.yml:67","Warn: npmCommand not pinned by hash: .github/workflows/test_coverage.yml:74","Warn: npmCommand not pinned by hash: .github/workflows/test_install.yml:75","Warn: npmCommand not pinned by hash: .github/workflows/test_install.yml:75","Warn: npmCommand not pinned by hash: .github/workflows/test_install.yml:75","Warn: npmCommand not pinned by hash: .github/workflows/test_published_package.yml:93","Info:  37 out of  37 GitHub-owned GitHubAction dependencies pinned","Info:  23 out of  28 third-party GitHubAction dependencies pinned","Info:   0 out of  35 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T22:09:18.036Z","repository_id":41398090,"created_at":"2025-08-23T22:09:18.036Z","updated_at":"2025-08-23T22:09:18.036Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273695219,"owners_count":25151481,"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-04T02:00:08.968Z","response_time":61,"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"}},"owner":{"login":"stdlib-js","name":"stdlib","uuid":"17805691","kind":"organization","description":"Standard library for JavaScript.","email":null,"website":"https://stdlib.io","location":null,"twitter":"stdlibjs","company":null,"icon_url":"https://avatars.githubusercontent.com/u/17805691?v=4","repositories_count":3692,"last_synced_at":"2024-05-01T09:30:33.148Z","metadata":{"has_sponsors_listing":true,"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"html_url":"https://github.com/stdlib-js","funding_links":["https://github.com/sponsors/stdlib-js","https://opencollective.com/stdlib","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"total_stars":9686,"followers":99,"following":0,"created_at":"2022-11-02T16:51:14.990Z","updated_at":"2024-05-01T09:37:07.346Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js/repositories"},"packages":[{"id":8324011,"name":"@stdlib/string-truncate-cli","ecosystem":"npm","description":"Truncate a string to a specified length.","homepage":"https://stdlib.io","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/stdlib-js/string-truncate","keywords_array":["stdlib","stdstring","utilities","utility","utils","util","pad","string","str","truncate","trunc","shorten","short"],"namespace":"stdlib","versions_count":4,"first_release_published_at":"2023-09-23T18:13:28.986Z","latest_release_published_at":"2024-07-27T23:48:50.830Z","latest_release_number":"0.2.2","last_synced_at":"2025-08-16T03:49:11.898Z","created_at":"2023-09-23T18:15:20.546Z","updated_at":"2025-08-16T06:54:42.103Z","registry_url":"https://www.npmjs.com/package/@stdlib/string-truncate-cli","install_command":"npm install @stdlib/string-truncate-cli","documentation_url":null,"metadata":{"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"dist-tags":{"latest":"0.2.2"}},"repo_metadata":{"id":41398090,"uuid":"406499598","full_name":"stdlib-js/string-truncate","owner":"stdlib-js","description":"Truncate a string to a specified length.","archived":false,"fork":false,"pushed_at":"2025-05-12T01:00:56.000Z","size":1248,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-12T23:49:08.592Z","etag":null,"topics":["javascript","node","node-js","nodejs","pad","short","shorten","stdlib","str","string","trunc","truncate","util","utilities","utility","utils"],"latest_commit_sha":null,"homepage":"https://github.com/stdlib-js/stdlib","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdlib-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"created_at":"2021-09-14T19:39:32.000Z","updated_at":"2025-05-12T00:42:40.000Z","dependencies_parsed_at":"2023-02-17T08:18:47.053Z","dependency_job_id":"b2225a82-6597-4ba9-959f-d109704f2ec0","html_url":"https://github.com/stdlib-js/string-truncate","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"c279ae9f485afdbc884edf5a02e0db20324e2651"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/stdlib-js/string-truncate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270679247,"owners_count":24626930,"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-16T02:00:11.002Z","response_time":91,"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"},"owner_record":{"login":"stdlib-js","name":"stdlib","uuid":"17805691","kind":"organization","description":"Standard library for JavaScript.","email":null,"website":"https://stdlib.io","location":null,"twitter":"stdlibjs","company":null,"icon_url":"https://avatars.githubusercontent.com/u/17805691?v=4","repositories_count":3692,"last_synced_at":"2024-05-01T09:30:33.148Z","metadata":{"has_sponsors_listing":true,"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"html_url":"https://github.com/stdlib-js","funding_links":["https://github.com/sponsors/stdlib-js","https://opencollective.com/stdlib","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"total_stars":9686,"followers":99,"following":0,"created_at":"2022-11-02T16:51:14.990Z","updated_at":"2024-05-01T09:37:07.346Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js/repositories"},"tags":[{"name":"v0.2.2-cli","sha":"a53b648f247da5f126a80fb30ebf15885dd4d5d3","kind":"tag","published_at":"2024-07-27T23:48:21.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-cli/manifests"},{"name":"v0.2.2-esm","sha":"141169dd7a7369a8894b84231a6441e27a553803","kind":"tag","published_at":"2024-07-27T23:48:20.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-esm/manifests"},{"name":"v0.2.2-umd","sha":"866fa7be8e1a32bdb13d5a968b1eeeab22acd999","kind":"tag","published_at":"2024-07-27T23:48:19.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-umd/manifests"},{"name":"v0.2.2-deno","sha":"922ed6fd3aebe626d22429d3c46900c810257ab7","kind":"tag","published_at":"2024-07-27T23:48:18.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-deno/manifests"},{"name":"v0.2.2","sha":"bc7ec5e02b3effb593c4efc0c88bcbdcf91dbf41","kind":"commit","published_at":"2024-07-27T23:42:59.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2/manifests"},{"name":"v0.2.1-cli","sha":"d36610ad7f726e70d3f0abffcd717478d4880964","kind":"tag","published_at":"2024-02-24T18:20:56.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-cli/manifests"},{"name":"v0.2.1-esm","sha":"51ab9dc2a47d9f1ac310d2395d3b2d8733f80cd8","kind":"tag","published_at":"2024-02-24T18:20:55.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-esm/manifests"},{"name":"v0.2.1-umd","sha":"de47047f01264c8e02a50d6d637feb7b5e616d34","kind":"tag","published_at":"2024-02-24T18:20:53.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-umd/manifests"},{"name":"v0.2.1-deno","sha":"438ca9a2dbd973306e61024a3128863b5e122ce9","kind":"tag","published_at":"2024-02-24T18:20:52.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-deno/manifests"},{"name":"v0.2.1","sha":"4d44c5ba0100b3b7f556cd79b836d4f87a2bc1de","kind":"commit","published_at":"2024-02-24T15:33:08.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1/manifests"},{"name":"v0.2.0-cli","sha":"9b7ccc7b579c88295591722f0d5aa3bd9e970117","kind":"tag","published_at":"2024-02-14T20:03:46.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-cli/manifests"},{"name":"v0.2.0-esm","sha":"4bba6c68f8df806fc1a8b175629ee8a9df39e7fb","kind":"tag","published_at":"2024-02-14T20:03:45.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-esm/manifests"},{"name":"v0.2.0-umd","sha":"d2e58dc1131aed9474baa1b6bdc225ec55b40792","kind":"tag","published_at":"2024-02-14T20:03:44.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-umd/manifests"},{"name":"v0.2.0-deno","sha":"58f6fedcfc78a4d50f22392e88044dca4b661a6f","kind":"tag","published_at":"2024-02-14T20:03:42.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-deno/manifests"},{"name":"v0.2.0","sha":"b029299ef68b5a190471c02b633ce8086cb3f055","kind":"commit","published_at":"2024-02-14T06:38:03.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0/manifests"},{"name":"v0.1.0-cli","sha":"162ec4ccf92c89b0e8d01f09250d20bc0489d00c","kind":"tag","published_at":"2023-09-23T17:46:34.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-cli/manifests"},{"name":"v0.1.0-esm","sha":"bc980bd69827ce48b502b353568276b5e4c1003b","kind":"tag","published_at":"2023-09-23T17:46:33.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-esm/manifests"},{"name":"v0.1.0-umd","sha":"2ec0341d6cf95c5fd6037d7ca8f8937cbdc2c7d0","kind":"tag","published_at":"2023-09-23T17:46:31.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-umd/manifests"},{"name":"v0.1.0-deno","sha":"3d4485bd80d50bcb4c8af3957d4879e677546d1f","kind":"tag","published_at":"2023-09-23T17:46:29.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-deno/manifests"},{"name":"v0.1.0","sha":"8df91c8ce746e47b152054eff6aa02eedc7e98b4","kind":"commit","published_at":"2023-09-23T15:07:49.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0/manifests"},{"name":"v0.0.3","sha":"a44f752e2ca60293cd1319950275091c632c7a0c","kind":"commit","published_at":"2022-07-12T14:12:40.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.0.3","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.0.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.3/manifests"},{"name":"v0.0.2","sha":"46b6732011105d4fa5adb72f6842f5bc89fe54a4","kind":"commit","published_at":"2022-02-16T07:07:13.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.0.2","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.2/manifests"},{"name":"v0.0.1","sha":"adad9bfcbd8e5c2541245eb94b9fc45396e53996","kind":"commit","published_at":"2021-11-05T18:41:46.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.0.1","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.1/manifests"}]},"repo_metadata_updated_at":"2025-08-16T06:54:42.103Z","dependent_packages_count":0,"downloads":0,"downloads_period":"last-month","dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":37.34408775960969,"dependent_packages_count":53.50768215711952,"stargazers_count":14.972115415535434,"forks_count":15.913136654094753,"docker_downloads_count":null,"average":30.43425549658985},"purl":"pkg:npm/%40stdlib/string-truncate-cli","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@stdlib/string-truncate-cli","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@stdlib/string-truncate-cli","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@stdlib/string-truncate-cli/dependencies","status":null,"funding_links":["https://opencollective.com/stdlib","https://github.com/sponsors/stdlib-js","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"critical":null,"issue_metadata":{"last_synced_at":"2025-07-13T04:49:48.323Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate-cli/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate-cli/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate-cli/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate-cli/related_packages","maintainers":[{"uuid":"planeshifter","login":"planeshifter","name":null,"email":"pgb@andrew.cmu.edu","url":null,"packages_count":4395,"html_url":"https://www.npmjs.com/~planeshifter","role":null,"created_at":"2023-09-23T19:28:28.979Z","updated_at":"2023-09-23T19:28:28.979Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/planeshifter/packages"},{"uuid":"rreusser","login":"rreusser","name":null,"email":"rsreusser@gmail.com","url":null,"packages_count":4351,"html_url":"https://www.npmjs.com/~rreusser","role":null,"created_at":"2023-09-23T19:28:29.027Z","updated_at":"2023-09-23T19:28:29.027Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/rreusser/packages"},{"uuid":"stdlib-bot","login":"stdlib-bot","name":null,"email":"kgryte+stdlibbot@gmail.com","url":null,"packages_count":4086,"html_url":"https://www.npmjs.com/~stdlib-bot","role":null,"created_at":"2023-09-23T19:28:28.764Z","updated_at":"2023-09-23T19:28:28.764Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/stdlib-bot/packages"},{"uuid":"kgryte","login":"kgryte","name":null,"email":"kgryte@gmail.com","url":null,"packages_count":4885,"html_url":"https://www.npmjs.com/~kgryte","role":null,"created_at":"2023-09-23T19:28:28.805Z","updated_at":"2023-09-23T19:28:28.805Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/kgryte/packages"}],"registry":{"name":"npmjs.org","url":"https://registry.npmjs.org","ecosystem":"npm","default":true,"packages_count":5130421,"maintainers_count":1051403,"namespaces_count":313133,"keywords_count":729662,"github":"npm","metadata":{"funded_packages_count":155690},"icon_url":"https://github.com/npm.png","created_at":"2022-04-04T15:19:23.081Z","updated_at":"2025-09-04T06:49:01.052Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/namespaces"}},{"id":1217494,"name":"@stdlib/string-truncate","ecosystem":"npm","description":"Truncate a string to a specified length.","homepage":"https://stdlib.io","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/stdlib-js/string-truncate","keywords_array":["stdlib","stdstring","utilities","utility","utils","util","pad","string","str","truncate","trunc","shorten","short"],"namespace":"stdlib","versions_count":7,"first_release_published_at":"2021-11-05T18:54:49.002Z","latest_release_published_at":"2024-07-27T23:43:01.691Z","latest_release_number":"0.2.2","last_synced_at":"2025-08-16T10:34:36.770Z","created_at":"2022-04-08T13:57:59.756Z","updated_at":"2025-08-16T12:08:47.569Z","registry_url":"https://www.npmjs.com/package/@stdlib/string-truncate","install_command":"npm install @stdlib/string-truncate","documentation_url":null,"metadata":{"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"dist-tags":{"latest":"0.2.2"}},"repo_metadata":{"id":41398090,"uuid":"406499598","full_name":"stdlib-js/string-truncate","owner":"stdlib-js","description":"Truncate a string to a specified length.","archived":false,"fork":false,"pushed_at":"2025-05-12T01:00:56.000Z","size":1248,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-12T23:49:08.592Z","etag":null,"topics":["javascript","node","node-js","nodejs","pad","short","shorten","stdlib","str","string","trunc","truncate","util","utilities","utility","utils"],"latest_commit_sha":null,"homepage":"https://github.com/stdlib-js/stdlib","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdlib-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"created_at":"2021-09-14T19:39:32.000Z","updated_at":"2025-05-12T00:42:40.000Z","dependencies_parsed_at":"2023-02-17T08:18:47.053Z","dependency_job_id":"b2225a82-6597-4ba9-959f-d109704f2ec0","html_url":"https://github.com/stdlib-js/string-truncate","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"c279ae9f485afdbc884edf5a02e0db20324e2651"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/stdlib-js/string-truncate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270679247,"owners_count":24626930,"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-16T02:00:11.002Z","response_time":91,"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"},"owner_record":{"login":"stdlib-js","name":"stdlib","uuid":"17805691","kind":"organization","description":"Standard library for JavaScript.","email":null,"website":"https://stdlib.io","location":null,"twitter":"stdlibjs","company":null,"icon_url":"https://avatars.githubusercontent.com/u/17805691?v=4","repositories_count":3692,"last_synced_at":"2024-05-01T09:30:33.148Z","metadata":{"has_sponsors_listing":true,"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"html_url":"https://github.com/stdlib-js","funding_links":["https://github.com/sponsors/stdlib-js","https://opencollective.com/stdlib","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"total_stars":9686,"followers":99,"following":0,"created_at":"2022-11-02T16:51:14.990Z","updated_at":"2024-05-01T09:37:07.346Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js/repositories"},"tags":[{"name":"v0.2.2-cli","sha":"a53b648f247da5f126a80fb30ebf15885dd4d5d3","kind":"tag","published_at":"2024-07-27T23:48:21.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-cli/manifests"},{"name":"v0.2.2-esm","sha":"141169dd7a7369a8894b84231a6441e27a553803","kind":"tag","published_at":"2024-07-27T23:48:20.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-esm/manifests"},{"name":"v0.2.2-umd","sha":"866fa7be8e1a32bdb13d5a968b1eeeab22acd999","kind":"tag","published_at":"2024-07-27T23:48:19.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-umd/manifests"},{"name":"v0.2.2-deno","sha":"922ed6fd3aebe626d22429d3c46900c810257ab7","kind":"tag","published_at":"2024-07-27T23:48:18.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2-deno/manifests"},{"name":"v0.2.2","sha":"bc7ec5e02b3effb593c4efc0c88bcbdcf91dbf41","kind":"commit","published_at":"2024-07-27T23:42:59.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.2","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.2/manifests"},{"name":"v0.2.1-cli","sha":"d36610ad7f726e70d3f0abffcd717478d4880964","kind":"tag","published_at":"2024-02-24T18:20:56.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-cli/manifests"},{"name":"v0.2.1-esm","sha":"51ab9dc2a47d9f1ac310d2395d3b2d8733f80cd8","kind":"tag","published_at":"2024-02-24T18:20:55.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-esm/manifests"},{"name":"v0.2.1-umd","sha":"de47047f01264c8e02a50d6d637feb7b5e616d34","kind":"tag","published_at":"2024-02-24T18:20:53.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-umd/manifests"},{"name":"v0.2.1-deno","sha":"438ca9a2dbd973306e61024a3128863b5e122ce9","kind":"tag","published_at":"2024-02-24T18:20:52.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1-deno/manifests"},{"name":"v0.2.1","sha":"4d44c5ba0100b3b7f556cd79b836d4f87a2bc1de","kind":"commit","published_at":"2024-02-24T15:33:08.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.1","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.1/manifests"},{"name":"v0.2.0-cli","sha":"9b7ccc7b579c88295591722f0d5aa3bd9e970117","kind":"tag","published_at":"2024-02-14T20:03:46.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-cli/manifests"},{"name":"v0.2.0-esm","sha":"4bba6c68f8df806fc1a8b175629ee8a9df39e7fb","kind":"tag","published_at":"2024-02-14T20:03:45.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-esm/manifests"},{"name":"v0.2.0-umd","sha":"d2e58dc1131aed9474baa1b6bdc225ec55b40792","kind":"tag","published_at":"2024-02-14T20:03:44.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-umd/manifests"},{"name":"v0.2.0-deno","sha":"58f6fedcfc78a4d50f22392e88044dca4b661a6f","kind":"tag","published_at":"2024-02-14T20:03:42.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0-deno/manifests"},{"name":"v0.2.0","sha":"b029299ef68b5a190471c02b633ce8086cb3f055","kind":"commit","published_at":"2024-02-14T06:38:03.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.2.0","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.2.0/manifests"},{"name":"v0.1.0-cli","sha":"162ec4ccf92c89b0e8d01f09250d20bc0489d00c","kind":"tag","published_at":"2023-09-23T17:46:34.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-cli","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-cli","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-cli","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-cli","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-cli/manifests"},{"name":"v0.1.0-esm","sha":"bc980bd69827ce48b502b353568276b5e4c1003b","kind":"tag","published_at":"2023-09-23T17:46:33.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-esm","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-esm/manifests"},{"name":"v0.1.0-umd","sha":"2ec0341d6cf95c5fd6037d7ca8f8937cbdc2c7d0","kind":"tag","published_at":"2023-09-23T17:46:31.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-umd","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-umd/manifests"},{"name":"v0.1.0-deno","sha":"3d4485bd80d50bcb4c8af3957d4879e677546d1f","kind":"tag","published_at":"2023-09-23T17:46:29.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0-deno","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0-deno/manifests"},{"name":"v0.1.0","sha":"8df91c8ce746e47b152054eff6aa02eedc7e98b4","kind":"commit","published_at":"2023-09-23T15:07:49.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.1.0","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.1.0/manifests"},{"name":"v0.0.3","sha":"a44f752e2ca60293cd1319950275091c632c7a0c","kind":"commit","published_at":"2022-07-12T14:12:40.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.0.3","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.0.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.3/manifests"},{"name":"v0.0.2","sha":"46b6732011105d4fa5adb72f6842f5bc89fe54a4","kind":"commit","published_at":"2022-02-16T07:07:13.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.0.2","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.2/manifests"},{"name":"v0.0.1","sha":"adad9bfcbd8e5c2541245eb94b9fc45396e53996","kind":"commit","published_at":"2021-11-05T18:41:46.000Z","download_url":"https://codeload.github.com/stdlib-js/string-truncate/tar.gz/v0.0.1","html_url":"https://github.com/stdlib-js/string-truncate/releases/tag/v0.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/string-truncate@v0.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/tags/v0.0.1/manifests"}]},"repo_metadata_updated_at":"2025-08-16T12:08:47.569Z","dependent_packages_count":3,"downloads":819,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":25.336411948904804,"dependent_repos_count":10.340532343810322,"dependent_packages_count":5.902938478815768,"stargazers_count":14.52776701496927,"forks_count":15.420301248910082,"docker_downloads_count":null,"average":14.305590207082048},"purl":"pkg:npm/%40stdlib/string-truncate","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@stdlib/string-truncate","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@stdlib/string-truncate","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@stdlib/string-truncate/dependencies","status":null,"funding_links":["https://opencollective.com/stdlib","https://github.com/sponsors/stdlib-js","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-16T06:54:42.093Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Fstring-truncate/related_packages","maintainers":[{"uuid":"planeshifter","login":"planeshifter","name":null,"email":"pgb@andrew.cmu.edu","url":null,"packages_count":4395,"html_url":"https://www.npmjs.com/~planeshifter","role":null,"created_at":"2022-11-10T18:20:12.676Z","updated_at":"2022-11-10T18:20:12.676Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/planeshifter/packages"},{"uuid":"rreusser","login":"rreusser","name":null,"email":"rsreusser@gmail.com","url":null,"packages_count":4351,"html_url":"https://www.npmjs.com/~rreusser","role":null,"created_at":"2022-11-10T18:20:12.687Z","updated_at":"2022-11-10T18:20:12.687Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/rreusser/packages"},{"uuid":"stdlib-bot","login":"stdlib-bot","name":null,"email":"kgryte+stdlibbot@gmail.com","url":null,"packages_count":4086,"html_url":"https://www.npmjs.com/~stdlib-bot","role":null,"created_at":"2022-11-10T18:20:12.657Z","updated_at":"2022-11-10T18:20:12.657Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/stdlib-bot/packages"},{"uuid":"kgryte","login":"kgryte","name":null,"email":"kgryte@gmail.com","url":null,"packages_count":4885,"html_url":"https://www.npmjs.com/~kgryte","role":null,"created_at":"2022-11-10T18:20:12.666Z","updated_at":"2022-11-10T18:20:12.666Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/kgryte/packages"}],"registry":{"name":"npmjs.org","url":"https://registry.npmjs.org","ecosystem":"npm","default":true,"packages_count":5130421,"maintainers_count":1051403,"namespaces_count":313133,"keywords_count":729662,"github":"npm","metadata":{"funded_packages_count":155690},"icon_url":"https://github.com/npm.png","created_at":"2022-04-04T15:19:23.081Z","updated_at":"2025-09-04T06:49:01.052Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages","maintainers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers","namespaces_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/namespaces"}}],"commits":{"id":105055,"full_name":"stdlib-js/string-truncate","default_branch":"main","committers":[{"name":"stdlib-bot","email":"noreply@stdlib.io","login":null,"count":46}],"total_commits":46,"total_committers":1,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":46.0,"dds":0.0,"past_year_committers":[{"name":"stdlib-bot","email":"noreply@stdlib.io","login":null,"count":14}],"past_year_total_commits":14,"past_year_total_committers":1,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":14.0,"past_year_dds":0.0,"last_synced_at":"2024-02-08T04:14:45.318Z","last_synced_commit":"c279ae9f485afdbc884edf5a02e0db20324e2651","created_at":"2023-03-07T21:53:24.429Z","updated_at":"2024-02-08T04:14:45.319Z","commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-08-26T00:00:11.761Z","repositories_count":5479765,"commits_count":853308191,"contributors_count":31095157,"owners_count":906558,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"stdlib-js/string-truncate","html_url":"https://github.com/stdlib-js/string-truncate","last_synced_at":"2025-08-16T06:54:42.093Z","status":"error","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2023-05-18T21:32:25.894Z","updated_at":"2025-08-16T06:54:42.093Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Fstring-truncate/issues","issue_labels_count":{},"pull_request_labels_count":{},"issue_author_associations_count":{},"pull_request_author_associations_count":{},"issue_authors":{},"pull_request_authors":{},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-09-05T00:00:10.444Z","repositories_count":10082304,"issues_count":31220387,"pull_requests_count":96069062,"authors_count":10694175,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[],"active_maintainers":[]},"events":{"total":{"WatchEvent":1,"PushEvent":27},"last_year":{"WatchEvent":1,"PushEvent":27}},"keywords":["javascript","node","node-js","nodejs","pad","short","shorten","stdlib","str","string","trunc","truncate","util","utilities","utility","utils"],"dependencies":[{"ecosystem":"npm","filepath":"package.json","sha":null,"kind":"manifest","created_at":"2022-09-06T08:00:44.036Z","updated_at":"2022-09-06T08:00:44.036Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/package.json","dependencies":[{"id":3989701995,"package_name":"@stdlib/assert-is-nonnegative-integer","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989701996,"package_name":"@stdlib/assert-is-regexp-string","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989701997,"package_name":"@stdlib/assert-is-string","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989701998,"package_name":"@stdlib/cli-ctor","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989701999,"package_name":"@stdlib/fs-read-file","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702000,"package_name":"@stdlib/process-read-stdin","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702001,"package_name":"@stdlib/regexp-eol","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702002,"package_name":"@stdlib/streams-node-stdin","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702003,"package_name":"@stdlib/string-format","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702004,"package_name":"@stdlib/string-next-grapheme-cluster-break","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702005,"package_name":"@stdlib/string-num-grapheme-clusters","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702006,"package_name":"@stdlib/types","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702007,"package_name":"@stdlib/utils-regexp-from-string","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"runtime","optional":false},{"id":3989702008,"package_name":"@stdlib/assert-is-browser","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"development","optional":false},{"id":3989702009,"package_name":"@stdlib/assert-is-windows","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"development","optional":false},{"id":3989702010,"package_name":"@stdlib/bench","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"development","optional":false},{"id":3989702011,"package_name":"@stdlib/process-exec-path","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"development","optional":false},{"id":3989702012,"package_name":"@stdlib/string-from-code-point","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"development","optional":false},{"id":3989702013,"package_name":"@stdlib/string-replace","ecosystem":"npm","requirements":"^0.0.x","direct":true,"kind":"development","optional":false},{"id":3989702014,"package_name":"tape","ecosystem":"npm","requirements":"git+https://github.com/kgryte/tape.git#fix/globby","direct":true,"kind":"development","optional":false},{"id":3989702015,"package_name":"proxyquire","ecosystem":"npm","requirements":"^2.0.0","direct":true,"kind":"development","optional":false},{"id":3989702016,"package_name":"istanbul","ecosystem":"npm","requirements":"^0.4.1","direct":true,"kind":"development","optional":false},{"id":3989702017,"package_name":"tap-spec","ecosystem":"npm","requirements":"5.x.x","direct":true,"kind":"development","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/benchmark.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.361Z","updated_at":"2023-01-31T22:15:41.361Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/benchmark.yml","dependencies":[{"id":7282495882,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495883,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/cancel.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.370Z","updated_at":"2023-01-31T22:15:41.370Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/cancel.yml","dependencies":[{"id":7282495884,"package_name":"styfle/cancel-workflow-action","ecosystem":"actions","requirements":"0.11.0","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/close_pull_requests.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.379Z","updated_at":"2023-01-31T22:15:41.379Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/close_pull_requests.yml","dependencies":[{"id":7282495888,"package_name":"superbrothers/close-pull-request","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/examples.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.388Z","updated_at":"2023-01-31T22:15:41.388Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/examples.yml","dependencies":[{"id":7282495893,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495895,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/npm_downloads.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.411Z","updated_at":"2023-01-31T22:15:41.411Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/npm_downloads.yml","dependencies":[{"id":7282495901,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495902,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495903,"package_name":"actions/upload-artifact","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495904,"package_name":"distributhor/workflow-webhook","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/productionize.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.446Z","updated_at":"2023-01-31T22:15:41.446Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/productionize.yml","dependencies":[{"id":7282495913,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495914,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282495915,"package_name":"stdlib-js/transform-errors-action","ecosystem":"actions","requirements":"main","direct":true,"kind":"composite","optional":false},{"id":7282495916,"package_name":"stdlib-js/bundle-action","ecosystem":"actions","requirements":"main","direct":true,"kind":"composite","optional":false},{"id":7282495917,"package_name":"act10ns/slack","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/publish.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.463Z","updated_at":"2023-01-31T22:15:41.463Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/publish.yml","dependencies":[{"id":7282496009,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496010,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496011,"package_name":"JS-DevTools/npm-publish","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false},{"id":7282496012,"package_name":"act10ns/slack","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false},{"id":7282496013,"package_name":"styfle/cancel-workflow-action","ecosystem":"actions","requirements":"0.11.0","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/test.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.512Z","updated_at":"2023-01-31T22:15:41.512Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/test.yml","dependencies":[{"id":7282496024,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496025,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496026,"package_name":"act10ns/slack","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/test_bundles.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.526Z","updated_at":"2023-01-31T22:15:41.526Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/test_bundles.yml","dependencies":[{"id":7282496029,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496030,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496031,"package_name":"act10ns/slack","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false},{"id":7282496032,"package_name":"denoland/setup-deno","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/test_coverage.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.594Z","updated_at":"2023-01-31T22:15:41.594Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/test_coverage.yml","dependencies":[{"id":7282496064,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496065,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496066,"package_name":"codecov/codecov-action","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496067,"package_name":"act10ns/slack","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false},{"id":7282496068,"package_name":"distributhor/workflow-webhook","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/test_install.yml","sha":null,"kind":"manifest","created_at":"2023-01-31T22:15:41.625Z","updated_at":"2023-01-31T22:15:41.625Z","repository_link":"https://github.com/stdlib-js/string-truncate/blob/main/.github/workflows/test_install.yml","dependencies":[{"id":7282496081,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496082,"package_name":"actions/setup-node","ecosystem":"actions","requirements":"v3","direct":true,"kind":"composite","optional":false},{"id":7282496083,"package_name":"act10ns/slack","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false}]}],"score":7.816416983691801,"created_at":"2025-09-04T15:50:52.021Z","updated_at":"2025-10-07T08:10:05.668Z","avatar_url":"https://github.com/stdlib-js.png","language":"JavaScript","category":null,"sub_category":null,"monthly_downloads":819,"funding_links":["https://opencollective.com/stdlib","https://github.com/sponsors/stdlib-js","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":[],"project_url":"https://science.ecosyste.ms/api/v1/projects/20603","html_url":"https://science.ecosyste.ms/projects/20603","bibtex_url":"https://science.ecosyste.ms/projects/20603/export.bibtex","apalike_url":"https://science.ecosyste.ms/projects/20603/export.apalike"}