{"id":19561826,"url":"https://github.com/valantic/webpack-dependency-hint","last_synced_at":"2026-05-12T21:09:41.502Z","repository":{"id":46055342,"uuid":"425852615","full_name":"valantic/webpack-dependency-hint","owner":"valantic","description":"A Webpack plugin that delivers a console output when a dependency check is recommended.","archived":false,"fork":false,"pushed_at":"2021-12-29T14:26:27.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-09T05:27:51.752Z","etag":null,"topics":["console","dependencies","information","javascript","webpack","webpack-plugin"],"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/valantic.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}},"created_at":"2021-11-08T13:40:06.000Z","updated_at":"2021-12-29T14:25:29.000Z","dependencies_parsed_at":"2022-08-30T21:30:38.276Z","dependency_job_id":null,"html_url":"https://github.com/valantic/webpack-dependency-hint","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/valantic%2Fwebpack-dependency-hint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fwebpack-dependency-hint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fwebpack-dependency-hint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valantic%2Fwebpack-dependency-hint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valantic","download_url":"https://codeload.github.com/valantic/webpack-dependency-hint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240822608,"owners_count":19863302,"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":["console","dependencies","information","javascript","webpack","webpack-plugin"],"created_at":"2024-11-11T05:12:39.476Z","updated_at":"2026-05-12T21:09:41.474Z","avatar_url":"https://github.com/valantic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-dependency-hint\nA Webpack plugin that delivers a console output when a dependency check is recommended.\nThe amount of days till the message should appear can be configured per default it's set to 90 days.\nTo handle the date format it uses https://day.js.org/. and the Console output gets styles by https://www.npmjs.com/package/chalk.\n\n![image](https://user-images.githubusercontent.com/12095490/140756894-ae4ed940-242d-4624-b39d-dc883ab31f43.png)\n\n## Documentation\n\n### Installation\n```\nnpm i @valantic/webpack-dependency-hint --save-dev\n```\n\n### Usage\n```js\n// webpack.config.js\nconst DependencyHint = require('@valantic/webpack-dependency-hint');\n\nmodule.exports = {\n  // ... configuration settings here ...\n  plugins: [\n    new DependencyHint({\n      lastUpdate: '01.01.2020',\n    })\n  ],\n};\n```\n\n### Options\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**`lastUpdate`**|`{String}`|`\"\"`|The date of the last update or check.|\n|**`daysTillWarning`**|`{Number}`|`90`|The amount of days till the warning should appear.|\n|**`inputFormat`**|`{String}`|`\"DD.MM.YYYY\"`|The input date format.|\n|**`outputFormat`**|`{String}`|`\"DD.MM.YYYY\"`|The output date format.|\n|**`warningText`**|`{String}`|`\"Please consider your project manager to arrange a dependency update.\"`|The additional text that appears in the console.|\n|**`compilerHook`**|`{String}`|`\"afterEnvironment\"`|The webpack compiler hook (see https://webpack.js.org/api/compiler-hooks/#hooks)|\n\n### Hints\nIn case you don't want to store the date manually in the webpack config you can add it to the package.json and import\nit to the webpack config.\n\n```json\n{\n  \"name\": \"your-project\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Your custom project\",\n  \"lastDependencyUpdate\": \"01.01.2021\"\n}\n```\n\n```js\n// webpack.config.js\nconst DependencyHint = require('@valantic/webpack-dependency-hint');\nconst pkg = require('./package.json');\n\nmodule.exports = {\n  // ... configuration settings here ...\n  plugins: [\n    new DependencyHint({\n      lastUpdate: pkg.lastDependencyUpdate,\n    })\n  ],\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalantic%2Fwebpack-dependency-hint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalantic%2Fwebpack-dependency-hint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalantic%2Fwebpack-dependency-hint/lists"}