{"id":15844292,"url":"https://github.com/afeiship/strip-extname","last_synced_at":"2025-10-23T21:37:46.649Z","repository":{"id":96088405,"uuid":"400674698","full_name":"afeiship/strip-extname","owner":"afeiship","description":"Trim a file extension from a String.","archived":false,"fork":false,"pushed_at":"2021-09-01T02:41:52.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T22:10:09.571Z","etag":null,"topics":["ext","extesion","extname","filename","strip","suffix","trim"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-08-28T01:33:26.000Z","updated_at":"2021-09-01T02:41:54.000Z","dependencies_parsed_at":"2023-04-21T03:44:06.159Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/strip-extname","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/strip-extname","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fstrip-extname","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fstrip-extname/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fstrip-extname/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fstrip-extname/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/strip-extname/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fstrip-extname/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280698966,"owners_count":26375690,"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-10-23T02:00:06.710Z","response_time":142,"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":["ext","extesion","extname","filename","strip","suffix","trim"],"created_at":"2024-10-05T17:21:21.054Z","updated_at":"2025-10-23T21:37:46.606Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strip-extname\n\u003e Trim a file extension from a String.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install @jswork/strip-extname\n```\n\n## usage\n```js\nimport stripExtname from '@jswork/strip-extname';\n\nconst src = 'path/subpath/file.txt.js';\nconst result1 = stripExtname(src, true);\nconst result2 = stripExtname(src);\n\n//path/subpath/file\n//path/subpath/file.txt\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/strip-extname/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/strip-extname\n[version-url]: https://npmjs.org/package/@jswork/strip-extname\n\n[license-image]: https://img.shields.io/npm/l/@jswork/strip-extname\n[license-url]: https://github.com/afeiship/strip-extname/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/strip-extname\n[size-url]: https://github.com/afeiship/strip-extname/blob/master/dist/strip-extname.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/strip-extname\n[download-url]: https://www.npmjs.com/package/@jswork/strip-extname\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fstrip-extname","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fstrip-extname","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fstrip-extname/lists"}