Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minifyify

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minifyify - npm Package Compare versions

Comparing version 3.0.0-beta2 to 3.0.0-beta3

2

package.json

@@ -21,3 +21,3 @@ {

],
"version": "3.0.0-beta2",
"version": "3.0.0-beta3",
"repository": {

@@ -24,0 +24,0 @@ "type": "git",

@@ -15,3 +15,3 @@ Minifyify

## Usage
## Simple Usage

@@ -21,4 +21,28 @@ ```js

, minifyify = require('minifyify')
, bundle = new browserify();
, minifier = new minifyify();
bundle.transform({global: true}, minifier.transform);
bundle('entry.js')
.bundle({debug: true})
.pipe(minifier.consume(function (err, src, map) {
// Your code here
}));
```
## Full Usage
```js
var path = require('path')
, browserify = require('browserify')
, minifyify = require('minifyify')
, bundle
, options // See docs below;
, minifier
, options = {
compressPath: function (p) {
return path.relative('my-app-root', p);
}
, map: '/bundle.map.json'
};

@@ -25,0 +49,0 @@ bundle = new browserify();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc