{"id":14982040,"url":"https://github.com/gulpjs/replace-ext","last_synced_at":"2025-04-05T19:13:15.817Z","repository":{"id":14474569,"uuid":"17186761","full_name":"gulpjs/replace-ext","owner":"gulpjs","description":"Replaces a file extension with another one.","archived":false,"fork":false,"pushed_at":"2023-03-14T00:13:11.000Z","size":21,"stargazers_count":46,"open_issues_count":0,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T18:07:18.051Z","etag":null,"topics":["basename","file-extension","filepath","gulp","path"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dsanel/mongoose-delete","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gulpjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["gulpjs","phated","yocontra"],"tidelift":"npm/gulp","open_collective":"gulpjs"}},"created_at":"2014-02-25T20:17:18.000Z","updated_at":"2023-11-12T03:39:04.000Z","dependencies_parsed_at":"2022-09-05T18:00:53.567Z","dependency_job_id":"4e73f84e-c2e9-4961-a415-30c8907dc867","html_url":"https://github.com/gulpjs/replace-ext","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.5,"last_synced_commit":"7ad3035eedc534504167bca1220b2e083bed3ed8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Freplace-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Freplace-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Freplace-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Freplace-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gulpjs","download_url":"https://codeload.github.com/gulpjs/replace-ext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247362499,"owners_count":20926791,"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","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":["basename","file-extension","filepath","gulp","path"],"created_at":"2024-09-24T14:04:41.167Z","updated_at":"2025-04-05T19:13:15.778Z","avatar_url":"https://github.com/gulpjs.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gulpjs.com\"\u003e\n    \u003cimg height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# replace-ext\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nReplaces a file extension with another one.\n\n## Usage\n\n```js\nvar replaceExt = require('replace-ext');\n\nvar path = '/some/dir/file.js';\nvar newPath = replaceExt(path, '.coffee');\n\nconsole.log(newPath); // /some/dir/file.coffee\n```\n\n## API\n\n### `replaceExt(path, extension)`\n\nReplaces the extension from `path` with `extension` and returns the updated path string.\n\nDoes not replace the extension if `path` is not a string or is empty.\n\n## License\n\nMIT\n\n\u003c!-- prettier-ignore-start --\u003e\n[downloads-image]: https://img.shields.io/npm/dm/replace-ext.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/replace-ext\n[npm-image]: https://img.shields.io/npm/v/replace-ext.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/replace-ext/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/replace-ext/dev.yml?branch=master\u0026style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/replace-ext\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/replace-ext/master.svg?style=flat-square\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":["https://github.com/sponsors/gulpjs","https://github.com/sponsors/phated","https://github.com/sponsors/yocontra","https://tidelift.com/funding/github/npm/gulp","https://opencollective.com/gulpjs"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Freplace-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgulpjs%2Freplace-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Freplace-ext/lists"}