How to use the archy function in archy

To help you get started, we’ve selected a few archy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexanderGugel / ied / src / ls_cmd.js View on Github external
function (subDeps, cb) {
      console.log(archy({
        label: path.basename(cwd),
        nodes: subDeps.map(function (dep) {
          return '[' + dep.shasum + '] ' + (dep.error ? dep.error.message : dep.pkg.name + '@' + dep.pkg.version)
        })
      }))
    }
  ])
github rocjs / roc / src / context / initContext.js View on Github external
function printTree(project, usedExtensions, projectExtensions) {
    const getParents = (extensionName) =>
        usedExtensions
            .find(({ name }) => name === extensionName)
            .parents
            .map(({ name, version }) => ({
                label: `${name}@${version}`,
                nodes: getParents(name),
            }));

    const tree = projectExtensions.map(({ name, version }) => ({
        label: `${name}@${version}`,
        nodes: getParents(name),
    }));

    return archy({
        label: `${project.name}@${project.version}`,
        nodes: tree,
    });
}
github ranyitz / qnm / src / render / render-module-occurrences.ts View on Github external
}),
  );

  const packageInfo = {
    label: chalk.underline(moduleName),
    nodes: buildedOccurrences,
  };

  if (monorepoPackageName) {
    return archy({
      label: chalk.bold(monorepoPackageName),
      nodes: [packageInfo],
    });
  }

  return archy(packageInfo);
};

archy

render nested hierarchies `npm ls` style with unicode pipes

MIT
Latest version published 10 years ago

Package Health Score

65 / 100
Full package analysis

Popular archy functions