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.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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.

sudo npm install browserify -g

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

n or name is the name of the export.

--uglify or -u - will shorten and uglify the dist build. Uglify will not always work with e.g. string literals.

browserify-sa -u --n helloWorld

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

sudo npm install -g uglify-js

MIT © Dennis Iversen

Keywords

FAQs

Package last updated on 27 Sep 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