{"id":22105583,"url":"https://github.com/btmpl/webpack-fingerprint","last_synced_at":"2025-07-25T02:32:09.695Z","repository":{"id":143928260,"uuid":"103841405","full_name":"BTMPL/webpack-fingerprint","owner":"BTMPL","description":"Generate list of all libraries imported in bundling process and their versions.","archived":false,"fork":false,"pushed_at":"2018-10-24T15:30:37.000Z","size":7,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-25T12:53:28.978Z","etag":null,"topics":["json","license","license-management","webpack"],"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/BTMPL.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}},"created_at":"2017-09-17T15:53:59.000Z","updated_at":"2018-12-08T15:18:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3cd5f8d-a012-45e8-92c1-bb862ecc2726","html_url":"https://github.com/BTMPL/webpack-fingerprint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BTMPL/webpack-fingerprint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fwebpack-fingerprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fwebpack-fingerprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fwebpack-fingerprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fwebpack-fingerprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BTMPL","download_url":"https://codeload.github.com/BTMPL/webpack-fingerprint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTMPL%2Fwebpack-fingerprint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266944312,"owners_count":24010486,"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-07-25T02:00:09.625Z","response_time":70,"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":["json","license","license-management","webpack"],"created_at":"2024-12-01T06:47:31.945Z","updated_at":"2025-07-25T02:32:09.687Z","avatar_url":"https://github.com/BTMPL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Webpack Fingerprint Plugin\n====================\n\nThis plugin will generate list of node modules (along with their version and licence)\nwhich were imported into the bundle and place it in an JSON file\n\nThe most common usage will be for tracking what versions are deployed with current version\nof your application and tracking their licenses for legal requirements.\n\n## Installation\n\nThe plugin is available via [npm](https://www.npmjs.com/package/webpack-fingerprint):\n\n```\n$ npm install --save webpack-fingerprint\n```\n\n## Examples\n\n### Basic\n\n```js\nvar WebpackFingerprint = require(\"webpack-fingerprint\");\n\nmodule.exports = {\n  plugins: [    \n    new WebpackFingerprint({\n      filename: \"fingerprint.json\" // Default\n    })\n  ]\n}\n```\n\nWill produce a file called `fingerprint.json` with following info:\n\n```js\n{\n  \"date\": \"2017-09-17T15:56:50.468Z\",\n  \"version\": \"1.0.0\",\n  \"packages\": {\n    \"babel-loader\": {\n      \"version\": \"7.1.2\",\n      \"license\": \"MIT\"\n    }\n    \"react\": {\n      \"version\": \"15.6.1\",\n      \"license\": \"BSD-3-Clause\"\n    }\n    \"react-dom\": {\n      \"version\": \"15.6.1\",\n      \"license\": \"BSD-3-Clause\"\n    }\n  }\n}\n```\n\n### Custom information\n\nYou can provide additional information to also be stored in the resulting file. To do so, pass a `additional` field on the configuration object.\n\n```js\nvar WebpackFingerprint = require(\"webpack-fingerprint\");\n\nmodule.exports = {\n  plugins: [    \n    new WebpackFingerprint({\n      additional: {\n        build_number: process.env.CI_BUILD_NUMBER\n      }\n    })\n  ]\n}\n```\n\n### Custom package details\n\nYou can also provide a transformer that will allow you to change the default information stored for each package. To do so, provide a `transformer` function, which will be called with each module `package.json` file and its return value will be used. If `null` is returned by all transformers, the `package` field will be omitted.\n\n```js\nvar WebpackFingerprint = require(\"webpack-fingerprint\");\n\nmodule.exports = {\n  plugins: [    \n    new WebpackFingerprint({\n      transformer: (package) =\u003e ({\n        version: package.version,\n        author: package.author\n      })\n    })\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtmpl%2Fwebpack-fingerprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtmpl%2Fwebpack-fingerprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtmpl%2Fwebpack-fingerprint/lists"}