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

uglify-to-browserify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uglify-to-browserify

A transform to make UglifyJS work in browserify.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-41.56%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 02 Feb 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

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