{"id":23535692,"url":"https://github.com/marcelrobitaille/dbust","last_synced_at":"2025-09-11T14:18:32.283Z","repository":{"id":93953106,"uuid":"64349043","full_name":"MarcelRobitaille/dbust","owner":"MarcelRobitaille","description":"Save the original name and the cache-busted name of your assets in a json file","archived":false,"fork":false,"pushed_at":"2017-06-06T18:28:30.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-10T18:34:50.602Z","etag":null,"topics":[],"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/MarcelRobitaille.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-07-27T23:43:59.000Z","updated_at":"2016-12-01T20:19:20.000Z","dependencies_parsed_at":"2023-04-12T20:30:56.734Z","dependency_job_id":null,"html_url":"https://github.com/MarcelRobitaille/dbust","commit_stats":null,"previous_names":["marcel-robitaille/dbust"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MarcelRobitaille/dbust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelRobitaille%2Fdbust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelRobitaille%2Fdbust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelRobitaille%2Fdbust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelRobitaille%2Fdbust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcelRobitaille","download_url":"https://codeload.github.com/MarcelRobitaille/dbust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelRobitaille%2Fdbust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274653304,"owners_count":25325265,"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-09-11T02:00:13.660Z","response_time":74,"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-12-26T01:19:24.315Z","updated_at":"2025-09-11T14:18:32.241Z","avatar_url":"https://github.com/MarcelRobitaille.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm downloads](https://img.shields.io/npm/dt/dbust.svg?style=flat-square)\n![Git issues](https://img.shields.io/github/issues/marcel-robitaille/dbust.svg?style=flat-square)\n![npm version](https://img.shields.io/npm/v/dbust.svg?style=flat-square)\n![license](https://img.shields.io/npm/l/express.svg?style=flat-square)\n\n\n# dbust\nPass it an object of hashed and original filenames and it saves them to a file. It will also delete the old file when the hash changes. Plugins for [webpack](https://webpack.github.io/) and [gulp-rev](https://npmjs.com/package/gulp-rev) exist.\n\n## Intended usage\nThis package is intended to be used with [gulp-dbust](https://www.npmjs.com/package/gulp-dbust) or [webpack-dbust](https://www.npmjs.com/package/webpack-dbust).\n\n## Direct usage\n\n```js\nconst dbust = require('dbust')\ndbust.options(options)\n\n// Add object of files to cache\n// A cache is used to prevent multiple write to a manifest file in a short amount of time such as with gulp + webpack\ndbust.put({\n  file1: 'file1-abc123',\n  file2: 'file2-xyz789',\n})\n\n// Write cache to file\ndbust.save()\n```\n```\n$ cat manifest.json\n{\"file1\":\"file1-abc123\",\"file2\":\"file2-xyz789\"}\n```\n\n## Options\nDefaults:\n```js\n{\n  base: process.cwd(),\n  manifest: base + '/manifest.json',\n}\n```\n\n### base\nDirname of project. Defaults to `process.cwd()`.\n\n### manifest\nJSON file to store hashes in. Defaults to `base/manifest.json`.\n\n### Upgrading to version 3.x.x\nSettings are done a little differently:\n```\nrequire('dbust')(options) ➔ require('dbust'); dbust.options(options)\n```\n\nVersion 3 only writes after all tasks are done to prevent weird stuff happening when two instances try to write the manifest at the same time.\n```\ndbust(files) ➔ dbust.put(files); dbust.save()\n```\n\n## Testing\n```\nnpm test\n```\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelrobitaille%2Fdbust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelrobitaille%2Fdbust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelrobitaille%2Fdbust/lists"}