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

browserify-sa

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-sa

Run browserify-sa in a npm package and make a standalone build of the package.

  • 2.0.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

browserify-sa

Run browserify-sa in a npm package and make a standalone build of the package.

Requirements

You will need a global install of browserify.

Install

sudo npm install browserify-sa -g

Usage

Just run the command in the module you would like to make, like this:

browserify-sa

Basicly a simple wrapper around browserify that does something like this:

mkdir -p dist && browserify moduleMain -s moduleName > dist/module-name.js

This makes a dist/module-name.js file based on the 'main' and 'name' fields in package.json

Options

Only option is --uglify or -u - which will shorten and uglify the dist build. Uglify will not always work with e.g. string literals. Therefor it is needed to specify it:

browserify-sa -u

In order to use uglify, you will need uglify.js installed global.

MIT © Dennis Iversen

Keywords

FAQs

Package last updated on 08 Aug 2017

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