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

viralify

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viralify

Injects one or more browserify transforms into all dependencies of a package recursively.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
302
increased by96.1%
Maintainers
1
Weekly downloads
 
Created
Source

viralify build status

Injects one or more browserify transforms into all dependencies of a package recursively.

var viralify = require('viralify');

viralify(root, 'browserify-swap', function (err) {
  if (err) return console.error(err);
  // package.json's found in root and below now have 'browserify-swap' added 
  // to the end of their 'browserify.transform' field
})

Installation

npm install viralify

API

viralify(root, transform, front, cb)

Injects the given transform(s) into the browserify.transform field of all package.jsons at and below the given root.

Parameters:
NameTypeArgumentDescription
root String

of the package

transform Array.<String>

one or more transforms to be added to the transform field

front Boolean <optional>

if set transforms are added to the front of the transform field so they run first

cb function

called when the transform injection is complete

Source:

generated with docme

License

MIT

Keywords

FAQs

Package last updated on 20 Dec 2013

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