Socket
Socket
Sign inDemoInstall

uglify-to-browserify

Package Overview
Dependencies
5
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uglify-to-browserify

A transform to make UglifyJS work in browserify.


Version published
Maintainers
1
Install size
106 kB
Created

Package description

What is uglify-to-browserify?

The uglify-to-browserify npm package is primarily designed to facilitate the use of UglifyJS, a JavaScript compressor, in a Browserify environment. It provides a simple adapter that allows UglifyJS to be used as a transform in Browserify, making it easier to minify JavaScript files during the bundle process.

What are uglify-to-browserify's main functionalities?

JavaScript Minification

This code demonstrates how to use uglify-to-browserify to minify a JavaScript file during the Browserify bundling process. It sets up a Browserify instance, applies the uglify transform to minify the code, and then writes the output to 'bundle.js'.

var browserify = require('browserify');
var fs = require('fs');
var uglify = require('uglify-to-browserify');

browserify('./src/app.js')
  .transform(uglify)
  .bundle()
  .pipe(fs.createWriteStream('bundle.js'));

Other packages similar to uglify-to-browserify

Readme

Source

uglify-to-browserify

A transform to make UglifyJS work in browserify.

Build Status Dependency Status NPM version

Installation

npm install uglify-to-browserify

License

MIT

FAQs

Last updated on 01 Aug 2013

Did you know?

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc