{"id":17419169,"url":"https://github.com/axtgr/rename-loader","last_synced_at":"2026-06-09T11:31:13.300Z","repository":{"id":57353426,"uuid":"47360356","full_name":"axtgr/rename-loader","owner":"axtgr","description":"A webpack loader for renaming modules","archived":false,"fork":false,"pushed_at":"2015-12-03T21:04:54.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-30T13:00:46.858Z","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/axtgr.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-12-03T21:04:22.000Z","updated_at":"2015-12-03T21:04:54.000Z","dependencies_parsed_at":"2022-09-19T03:11:51.169Z","dependency_job_id":null,"html_url":"https://github.com/axtgr/rename-loader","commit_stats":null,"previous_names":["alex-shnayder/rename-loader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/axtgr/rename-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Frename-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Frename-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Frename-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Frename-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axtgr","download_url":"https://codeload.github.com/axtgr/rename-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Frename-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34105565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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-10-17T02:17:23.172Z","updated_at":"2026-06-09T11:31:13.283Z","avatar_url":"https://github.com/axtgr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rename-loader\n\nA [webpack](http://webpack.github.io/) loader for renaming modules.\n\n## Installation\n\n`npm install --save-dev rename-loader`\n\n## Usage\n\nThe loader changes the module's `resourcePath` property which can then be used by other loaders. It uses the same query parameters (`name`, `regExp` and `context`) and interpolation options as `file-loader`. If the `name` parameter is not specified, the loader will try to use the whole query string instead.\n\nFor example, with the following postLoader configured in your webpack.config:\n\n```javascript\n{\n  test: /\\.png$/,\n  loader: 'file?name=images/[name].[ext]'\n}\n```\n\nAll `.png` images are emitted to the `images` folder with their initial filenames. If you want to rename a certain image (e.g. when creating a thumbnail), you can do this with `rename-loader`:\n\n```javascript\nrequire('rename?[path][name]-100x100.[ext]!./logo.png')\n```\n\nIt will emit the image to `images/logo-100x100.png`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Frename-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxtgr%2Frename-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Frename-loader/lists"}