PHP 8.2.30
Preview: ideal.js Size: 396 B
/opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/@npmcli/arborist/bin/ideal.js

const Arborist = require('../')

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

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

Directory Contents

Dirs: 1 × Files: 10

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
550 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.37 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.12 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
396 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
3.28 KB lrwxr-xr-x 2023-12-06 18:07:50
Edit Download
1.45 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.12 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
1.12 KB lrw-r--r-- 2023-12-06 18:07:50
Edit Download
209 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download
364 B lrw-r--r-- 2023-12-06 18:07:50
Edit Download

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