New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gulujs/archy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gulujs/archy

render nested hierarchies `npm ls` style with unicode pipes

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

@gulujs/archy

Installation

npm install @gulujs/archy

Usage

const archy = require('@gulujs/archy');
const s = archy.draw({
  label : 'beep',
  nodes : [
    'ity',
    {
      label : 'boop',
      nodes : [
        {
          label : 'o_O',
          nodes : [
            {
              label : 'oh',
              nodes : [ 'hello', 'puny' ]
            },
            'human'
          ]
        },
        'party\ntime!'
      ]
    }
  ]
});
console.log(s);

Output

beep
├── ity
└─┬ boop
  ├─┬ o_O
  │ ├─┬ oh
  │ │ ├── hello
  │ │ └── puny
  │ └── human
  └── party
      time!

Options

KeyValue
styledefault is 'NPM', support 'NPM' or 'FMW'
labeldefault is 'label', support function
nodesdefault is 'nodes', support function
unicodedefault is true
drawRootBranchdefault is false
prefixdefault is ''
concurrencydefault is Infinity, only for drawAsync

Inspired by

  • node-archy

License

Keywords

hierarchy

FAQs

Package last updated on 26 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts