🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

dedupify

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

dedupify

Replace the default dedupe transform for browserify

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

dedupify

version status node

Replace the default dedupe transform for browserify, to fix substack/factor-bundle#51.

Usage

const browserify = require('browserify')
const dedupify = require('dedupify')

var b = browserify(opts)
b.plugin(dedupify)
b.on('dedupify.deduped', (o) => {
  console.warn('Duplicates of modules found!', o.file, o.dup)
})

NOTE This plugin disables the dedupe transform, so you probably should warn the developer to reinstall dependencies manually.

Events

b.on('dedupify.deduped', o)

o.file and o.dup are file paths to the two modules which have the same contents.

Keywords

browserify-plugin

FAQs

Package last updated on 02 Mar 2016

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