New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

project-digest-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

project-digest-webpack-plugin

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Version License

Project Digest Webpack Plugin

Webpack plugin to generate file with digest of all project assets.

Install

npm install --save-dev project-digest-webpack-plugin

Usage

In your webpack configuration:

const ProjectDigestPlugin = require('project-digest-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new ProjectDigestPlugin('digest', {
        algorithm: 'md5'
    })
  ]
}

This will produce file "digest" in your output directory with digest, based on all project assets:

dc829bf0d79e690c59cee708b527e6b7

Configuration

  • algorithm - Hash algorithm used to generate digest. You can use all algorithms, compatible with crypto.createHash. Examples are 'sha256' (default), 'sha512', etc.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/djaler/project-digest-webpack-plugin.

License

The package is available as open source under the terms of the MIT License.

Keywords

webpack

FAQs

Package last updated on 19 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts