How to use the archy.split 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 stringparser / gulp-runtime / util / log.js View on Github external
util.logTasks = function(runtime) {
  var tree = this.taskTree(runtime.store.children);
  var configFile = this.tildify(process.argv[1]);
  tree.label = 'Tasks for ' + this.color.magenta(configFile);
  require('archy')(tree).split('\n').forEach(function (v) {
    if(!v.trim().length) { return ; }
    util.log(v);
  });
};

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