Nth Permutation Mathematics
    Have ideas to improve npm?Join in the discussion! »

    deps-transform

    1.0.0 • Public • Published

    deps-transform

    run browserify transforms on a module-deps stream

    npm travis standard

    Install

    npm install deps-transform

    Usage

    Use it to apply transforms after the 'deps' stage in the browserify pipeline:

    // minify JUST before packing
    b.pipeline.get('pack').unshift(
      transform('uglifyify'))

    You can use it to apply transforms on a preexisting bundle:

    # extract modules from bundle.js, 
    # format them nicely using babel-preset-unminify, 
    # save in the out/ folder. 
    browser-unpack < bundle.js | \
      deps-transform babelify --presets [ unminify ] | \
      deps-write out

    Perhaps generate two bundles, one for modern browsers and one for old browsers:

    browser-unpack < bundle.es6.js | \
      deps-transform babelify --presets [ env ] | \
      browser-pack > bundle.es5.js

    License

    Apache-2.0

    Install

    npm i deps-transform

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    5.89 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar