New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 - npm Package Compare versions

Comparing version 1.0.4 to 2.0.0

10

cli.js

@@ -8,2 +8,4 @@ #!/usr/bin/env node

var m = require('minimist-mini')();
var infoAry = new Array();

@@ -26,5 +28,9 @@ infoAry.push("Package: " + json.name);

command+= "(printf '/*" +infoStr +" */ '";
command+= "(printf '/* " +infoStr +" */ '";
command+=' && browserify ' + json.main + ' -s ' + json.name;
command+= ' | uglifyjs ) '
if (m.get('uglify')) {
command+= ' | uglifyjs';
}
command+= ') ';
command+= ' > dist/' + json.name + '.js';

@@ -31,0 +37,0 @@

12

package.json
{
"name": "browserify-sa",
"version": "1.0.4",
"version": "2.0.0",
"description": "Run browserify-sa in a npm package and make a standalone build of the package.",

@@ -9,3 +9,5 @@ "main": "index.js",

},
"dependencies": {},
"dependencies": {
"minimist-mini": "^2.0.7"
},
"devDependencies": {},

@@ -17,3 +19,3 @@ "scripts": {

"type": "git",
"url": "git+https://github.com/diversen/browserify-sa.git"
"url": "git+https://github.com/diversen/browserify-standalone.git"
},

@@ -23,3 +25,3 @@ "author": "dennis iversen",

"bugs": {
"url": "https://github.com/diversen/browserify-sa/issues"
"url": "https://github.com/diversen/browserify-standalone/issues"
},

@@ -29,3 +31,3 @@ "keywords": [

],
"homepage": "https://github.com/diversen/browserify-sa#readme"
"homepage": "https://github.com/diversen/browserify-standalone#readme"
}
# browserify-sa
## Install
Run browserify-sa in a npm package and make a standalone build of the package.
Install global:
sudo npm install browserify-sa -g
You will need browserify and uglify-js in recent versions as global installs:
sudo npm install -g uglify-js browserify
## Usage
Single command, no options.
browserify-sa
browserify-sa
Run this command in a npm package and make a standalone build of the package.
Basicly a simple wrapper around browserify that does something like this:

@@ -27,4 +15,10 @@

The build also includes common package.json fields like author and license.
# Options
Only option is `uglify` - which will uglify the `dist` build. Uglify will
not always work with e.g. `string literals`. Therefor it is needed to
specify it.
browserify-sa --uglify
MIT © [Dennis Iversen](https://github.com/diversen)

Sorry, the diff of this file is not supported yet

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