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

tinyify

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyify

a browserify plugin that runs various optimizations, so you don't have to install them all manually.

  • 2.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
increased by73.21%
Maintainers
1
Weekly downloads
 
Created
Source

tinyify

a browserify plugin that runs various optimizations, so you don't have to install them all manually.

npm travis standard

npm install --save-dev tinyify

browserify -p tinyify app.js

Included

  • unassertify - Remove assert() calls
  • envify - Replace environment variables—by default, replaces NODE_ENV with "production"
  • uglifyify - Remove dead code from modules
  • common-shakeify - Remove unused exports from modules
  • browser-pack-flat - Output a "flat" bundle, with all modules in a single scope
  • minify-stream - Uglify the final bundle

Options

Options can be provided on the command line using subarg syntax, or in a separate options object using the browserify API.

env: {}

Supply custom environment variables for envify.

b.plugin('tinyify', {
  env: {
    PUBLIC_PATH: 'https://mywebsite.surge.sh/'
  }
})

This option is only available in the API. On the CLI, you can define environment variables beforehand instead:

PUBLIC_PATH=https://mywebsite.surge.sh browserify app.js -p tinyify

--no-flat, flat: false

Disable browser-pack-flat. This is useful if you want to generate a browser-pack style bundle, like required by disc for example.

browserify app.js -p [ tinyify --no-flat ]
b.plugin('tinyify', { flat: false })

License

Apache-2.0

Keywords

FAQs

Package last updated on 21 Oct 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