PHP 8.2.31
Preview: virtual.js Size: 364 B
/opt/alt/alt-nodejs20/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-04-30 07:33:53
Edit Download
550 B lrw-r--r-- 2026-04-09 12:16:15
Edit Download
1.37 KB lrw-r--r-- 2026-04-09 12:16:15
Edit Download
1.12 KB lrw-r--r-- 2026-04-09 12:16:15
Edit Download
396 B lrw-r--r-- 2026-04-09 12:16:15
Edit Download
3.29 KB lrwxr-xr-x 2026-04-09 12:16:15
Edit Download
1.45 KB lrw-r--r-- 2026-04-09 12:16:15
Edit Download
1.12 KB lrw-r--r-- 2026-04-09 12:16:15
Edit Download
1.12 KB lrw-r--r-- 2026-04-09 12:16:15
Edit Download
209 B lrw-r--r-- 2026-04-09 12:16:15
Edit Download
364 B lrw-r--r-- 2026-04-09 12:16:15
Edit Download

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