{"id":20615,"library":"timestamp-webpack-plugin","title":"Timestamp Webpack Plugin","description":"Emits a JSON file containing timestamps and formatted date fields for each Webpack build. Version 0.2.3, with last release in 2016. Provides customizable output path and filename, and a wide range of date/time format placeholders (date, yyyy, MMMM, timezone, etc.). No active maintenance; no updates for years. Alternatives include webpack-manifest-plugin or custom stats plugins.","status":"deprecated","version":"0.2.3","language":"javascript","source_language":"en","source_url":"https://github.com/herereadthis/russano","tags":["javascript","webpack","timestamp","npm"],"install":[{"cmd":"npm install timestamp-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add timestamp-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add timestamp-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package does not ship ESM; must use CommonJS require.","wrong":"import TimestampWebpackPlugin from 'timestamp-webpack-plugin';","symbol":"TimestampWebpackPlugin","correct":"const TimestampWebpackPlugin = require('timestamp-webpack-plugin');"},{"note":"If using ESM, default import works but named import does not.","wrong":"const { TimestampWebpackPlugin } = require('timestamp-webpack-plugin');","symbol":"TimestampWebpackPlugin (ESM)","correct":"import TimestampWebpackPlugin from 'timestamp-webpack-plugin';"},{"note":"Options include 'path' (absolute or relative) and 'filename'.","symbol":"Configuration","correct":"module.exports = { plugins: [new TimestampWebpackPlugin({ path: './', filename: 'build.json' })] };"}],"quickstart":{"code":"const path = require('path');\nconst TimestampWebpackPlugin = require('timestamp-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' },\n  plugins: [\n    new TimestampWebpackPlugin({\n      path: path.resolve(__dirname, 'dist'),\n      filename: 'timestamp.json'\n    })\n  ]\n};","lang":"javascript","description":"Shows basic Webpack configuration to output a timestamp.json file with build date and time."},"warnings":[{"fix":"Use a maintained alternative like webpack-manifest-plugin or webpack-subresource-integrity.","message":"Package is unmaintained since 2016. May not work with modern Webpack 4/5.","severity":"deprecated","affected_versions":">=0.2.0"},{"fix":"Use path.resolve(__dirname, 'my-folder') or an absolute path.","message":"The 'path' option must be an absolute path; relative paths may not work correctly.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use 'MM' with leading zero if needed, or parse as integer.","message":"Output format 'MM' has leading space, not zero-padded. Example: \" 06\" for June.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save-dev timestamp-webpack-plugin' from project root.","cause":"Package not installed or installed in wrong directory.","error":"Error: Cannot find module 'timestamp-webpack-plugin'"},{"fix":"Use 'const TimestampWebpackPlugin = require('timestamp-webpack-plugin');'","cause":"Using ESM import incorrectly or wrong import syntax.","error":"TypeError: TimestampWebpackPlugin is not a constructor"},{"fix":"Ensure Webpack version compatibility or remove plugin usage.","cause":"This plugin may conflict with older Webpack 1/2 patterns.","error":"Error: webpack.optimize.OccurrenceOrderPlugin is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}