{"id":13548885,"url":"https://github.com/sindresorhus/rev-path","last_synced_at":"2025-10-19T19:31:04.168Z","repository":{"id":32513642,"uuid":"36094704","full_name":"sindresorhus/rev-path","owner":"sindresorhus","description":"Create a revved file path","archived":false,"fork":false,"pushed_at":"2022-07-09T03:34:28.000Z","size":8,"stargazers_count":20,"open_issues_count":0,"forks_count":10,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-04-14T06:09:33.041Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-05-22T20:51:59.000Z","updated_at":"2022-12-17T03:19:37.000Z","dependencies_parsed_at":"2022-08-07T17:32:05.184Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/rev-path","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Frev-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Frev-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Frev-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Frev-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/rev-path/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219877390,"owners_count":16554888,"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":[],"created_at":"2024-08-01T12:01:15.643Z","updated_at":"2025-10-19T19:31:03.810Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"# rev-path\n\n\u003e Create a [revved file path](http://blog.risingstack.com/automatic-cache-busting-for-your-css/)\n\n## Install\n\n```sh\nnpm install rev-path\n```\n\n## Usage\n\n```js\nimport {revPath, unrevPath} from 'rev-path';\n\nconst hash = 'bb9d8fe615'\n\nconst path = revPath('src/unicorn.png', hash);\n//=\u003e 'src/unicorn-bb9d8fe615.png'\n\nrevPath('src/unicorn.png', Date.now());\n//=\u003e 'src/unicorn-1432309925925.png'\n\n// You can also revert an already hashed path\nunrevPath(path, hash);\n//=\u003e 'src/unicorn.png'\n```\n\n## Related\n\n- [rev-file](https://github.com/sindresorhus/rev-file) - Get the revved file path of a file\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Frev-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Frev-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Frev-path/lists"}