Files
pnpm/example/index.js
2017-07-15 16:05:09 +03:00

8 lines
232 B
JavaScript

'use strict'
const hierarchyForPackages = require('../lib').forPackages
hierarchyForPackages(['graceful-fs', {name: 'pify', range: '2'}], __dirname, {depth: 2})
.then(tree => {
console.log(JSON.stringify(tree, null, 2))
})