PHP 8.2.30
Preview: bundle.js Size: 345 B
//proc/self/root/opt/alt/alt-nodejs6/root/lib/node_modules/npm/node_modules/fstream-npm/example/bundle.js

// this example will bundle every dependency
var P = require("../")
P({ path: "./" })
  .on("package", bundleIt)
  .on("entry", function (e) {
    console.error(e.constructor.name, e.path.substr(e.root.dirname.length + 1))
    e.on("package", bundleIt)
  })

function bundleIt (p) {
  p.bundleDependencies = Object.keys(p.dependencies || {})
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
345 B lrw-r--r-- 2021-09-28 09:36:11
Edit Download
548 B lrw-r--r-- 2021-09-28 09:36:11
Edit Download
657 B lrw-r--r-- 2021-09-28 09:36:11
Edit Download
358 B lrw-r--r-- 2021-09-28 09:36:11
Edit Download
545 B lrw-r--r-- 2021-09-28 09:36:11
Edit Download
605 B lrw-r--r-- 2021-09-28 09:36:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).