JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 433
  • Score
    100M100P100Q96393F
  • License

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

Package Exports

  • viralify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (viralify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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:
Name Type Argument Description
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