{"id":19560684,"url":"https://github.com/zoubin/util-path","last_synced_at":"2025-10-08T03:59:01.098Z","repository":{"id":32685971,"uuid":"36275057","full_name":"zoubin/util-path","owner":"zoubin","description":"extend node path module with useful methods","archived":false,"fork":false,"pushed_at":"2015-06-10T03:54:39.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T11:22:12.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoubin.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-26T05:49:03.000Z","updated_at":"2015-05-26T06:02:24.000Z","dependencies_parsed_at":"2022-07-20T00:02:30.501Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/util-path","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zoubin/util-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Futil-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Futil-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Futil-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Futil-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/util-path/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Futil-path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886411,"owners_count":26062975,"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-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2024-11-11T05:08:28.020Z","updated_at":"2025-10-08T03:59:01.069Z","avatar_url":"https://github.com/zoubin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# util-path\nextend node path module with useful methods\n\n## path.replaceExtname(filename, [ext=''])\n\nReplace extname of filename with ext.\n\n```javascript\nvar replace = require('util-path').replaceExtname;\n\nreplace('/a/b/c.scss', '.css'); // '/a/b/c.css'\nreplace('/a/b/c.scss'); // '/a/b/c'\n```\n\n## path.basename(filename, pattern)\n\nExtend original `path.basename`, so that the second pattern can be a pattern proper for [minimatch](https://www.npmjs.com/package/minimatch)\n\n```javascript\nvar basename = require('util-path').basename;\n\nbasename('/a/b/c.scss', '.{sc,c,sa}ss'); // 'c'\nbasename('/a/b/c.scss', '.*'); // 'c'\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Futil-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Futil-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Futil-path/lists"}