Socket
Socket
Sign inDemoInstall

tinyify

Package Overview
Dependencies
150
Maintainers
40
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.0 to 2.4.1

10

package.json
{
"name": "tinyify",
"description": "a browserify plugin that runs various optimizations, so you don't have to install them all manually.",
"version": "2.4.0",
"version": "2.4.1",
"author": "Renée Kooi <renee@kooi.me>",

@@ -10,9 +10,9 @@ "bugs": {

"dependencies": {
"browser-pack-flat": "^3.0.0",
"browser-pack-flat": "^3.0.9",
"bundle-collapser": "^1.3.0",
"common-shakeify": "^0.4.3",
"common-shakeify": "^0.4.6",
"envify": "^4.1.0",
"minify-stream": "^1.1.0",
"uglifyify": "^4.0.4",
"unassertify": "^2.0.5"
"uglifyify": "^5.0.0",
"unassertify": "^2.1.1"
},

@@ -19,0 +19,0 @@ "devDependencies": {

@@ -71,2 +71,32 @@ # tinyify

## More options?
If you need further customisation, I recommend installing the tools separately instead:
```bash
npm install --save-dev unassertify envify uglifyify common-shakeify browser-pack-flat uglify-js
browserify entry.js \
-g unassertify \
-g envify \
-g uglifyify \
-p common-shakeify \
-p browser-pack-flat/plugin \
| uglifyjs -cm \
> output.js
```
Or with the Node API:
```js
browserify('entry.js')
.transform('unassertify', { global: true })
.transform('envify', { global: true })
.transform('uglifyify', { global: true })
.plugin('common-shakeify')
.plugin('browser-pack-flat/plugin')
.bundle()
.pipe(require('minify-stream')())
.pipe(fs.createWriteStream('./output.js'))
```
## License

@@ -73,0 +103,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc