PHP 8.2.30
Preview: actual.js Size: 550 B
/opt/alt/alt-nodejs20/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/arborist/bin/actual.js

const Arborist = require('../')

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

module.exports = (options, time) => new Arborist(options)
  .loadActual(options)
  .then(time)
  .then(async ({ timing, result: tree }) => {
    printTree(tree)
    if (options.save) {
      await tree.meta.save()
    }
    if (options.saveHidden) {
      tree.meta.hiddenLockfile = true
      tree.meta.filename = options.path + '/node_modules/.package-lock.json'
      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:08
Edit Download
550 B lrw-r--r-- 2026-02-23 03:24:42
Edit Download
1.37 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
1.12 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
396 B lrw-r--r-- 2026-02-23 03:24:42
Edit Download
3.29 KB lrwxr-xr-x 2026-02-23 03:24:42
Edit Download
1.45 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
1.12 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
1.12 KB lrw-r--r-- 2026-02-23 03:24:42
Edit Download
209 B lrw-r--r-- 2026-02-23 03:24:42
Edit Download
364 B lrw-r--r-- 2026-02-23 03:24:42
Edit Download

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