PHP 8.2.30
Preview: virtual.js Size: 364 B
/opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/virtual.js

const Arborist = require('../')

const printTree = require('./lib/print-tree.js')

module.exports = (options, time) => new Arborist(options)
  .loadVirtual()
  .then(time)
  .then(async ({ timing, result: tree }) => {
    printTree(tree)
    if (options.save) {
      await tree.meta.save()
    }
    return `read ${tree.inventory.size} deps in ${timing.ms}`
  })

Directory Contents

Dirs: 1 × Files: 10

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2026-03-14 07:02:10
Edit Download
550 B lrw-r--r-- 2026-02-23 07:38:42
Edit Download
1.37 KB lrw-r--r-- 2026-02-23 07:38:42
Edit Download
1.12 KB lrw-r--r-- 2026-02-23 07:38:42
Edit Download
396 B lrw-r--r-- 2026-02-23 07:38:42
Edit Download
3.29 KB lrwxr-xr-x 2026-02-23 07:38:42
Edit Download
1.45 KB lrw-r--r-- 2026-02-23 07:38:42
Edit Download
1.12 KB lrw-r--r-- 2026-02-23 07:38:42
Edit Download
1.12 KB lrw-r--r-- 2026-02-23 07:38:42
Edit Download
209 B lrw-r--r-- 2026-02-23 07:38:42
Edit Download
364 B lrw-r--r-- 2026-02-23 07:38:42
Edit Download

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