Registry / devops / timestamp-webpack-plugin

timestamp-webpack-plugin

JSON →
library0.2.3jsnpmunverified

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.

npm install timestamp-webpack-plugin
INSTALL
IMPORT
SIG · TIMESTAMP-WEBPACK-
T
timestamp-webpack-plugin
devopsjavascriptv0.2.3
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TimestampWebpackPlugin
✓ const TimestampWebpackPlugin = require('timestamp-webpack-plugin');
✗ import TimestampWebpackPlugin from 'timestamp-webpack-plugin';
This package does not ship ESM; must use CommonJS require.
TimestampWebpackPlugin (ESM)
✓ import TimestampWebpackPlugin from 'timestamp-webpack-plugin';
✗ const { TimestampWebpackPlugin } = require('timestamp-webpack-plugin');
If using ESM, default import works but named import does not.
Configuration
✓ module.exports = { plugins: [new TimestampWebpackPlugin({ path: './', filename: 'build.json' })] };
Options include 'path' (absolute or relative) and 'filename'.

Shows basic Webpack configuration to output a timestamp.json file with build date and time.

const path = require('path'); const TimestampWebpackPlugin = require('timestamp-webpack-plugin'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' }, plugins: [ new TimestampWebpackPlugin({ path: path.resolve(__dirname, 'dist'), filename: 'timestamp.json' }) ] };
Debug
Known issues
deprecatedPackage is unmaintained since 2016. May not work with modern Webpack 4/5.
fix
Use a maintained alternative like webpack-manifest-plugin or webpack-subresource-integrity.
affects: >=0.2.0
gotchaThe 'path' option must be an absolute path; relative paths may not work correctly.
fix
Use path.resolve(__dirname, 'my-folder') or an absolute path.
affects: >=0.0.0
gotchaOutput format 'MM' has leading space, not zero-padded. Example: " 06" for June.
fix
Use 'MM' with leading zero if needed, or parse as integer.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'timestamp-webpack-plugin'
Package not installed or installed in wrong directory.
fix
Run 'npm install --save-dev timestamp-webpack-plugin' from project root.
TypeError: TimestampWebpackPlugin is not a constructor
Using ESM import incorrectly or wrong import syntax.
fix
Use 'const TimestampWebpackPlugin = require('timestamp-webpack-plugin');'
Error: webpack.optimize.OccurrenceOrderPlugin is not a function
This plugin may conflict with older Webpack 1/2 patterns.
fix
Ensure Webpack version compatibility or remove plugin usage.
Upgrade
Version history
0.2.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
timestamp-webpack-plugin — npm install timestamp-webpack-plugin · libregistry