Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-ux

Package Overview
Dependencies
Maintainers
6
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-ux - npm Package Compare versions

Comparing version 4.8.2 to 4.9.0

lib/styled/tree.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [4.9.0](https://github.com/oclif/cli-ux/compare/v4.8.2...v4.9.0) (2018-10-10)
### Features
* add tree ([#57](https://github.com/oclif/cli-ux/issues/57)) ([8d742a7](https://github.com/oclif/cli-ux/commit/8d742a7))
## [4.8.2](https://github.com/oclif/cli-ux/compare/v4.8.1...v4.8.2) (2018-09-13)

@@ -2,0 +9,0 @@

1

lib/deps.d.ts

@@ -13,4 +13,5 @@ export declare const deps: {

readonly table: typeof import("./styled/table").default;
readonly tree: typeof import("./styled/tree").default;
readonly wait: (ms?: number) => Promise<{}>;
};
export default deps;

@@ -15,2 +15,3 @@ "use strict";

get table() { return fetch('./styled/table').default; },
get tree() { return fetch('./styled/tree').default; },
get wait() { return fetch('./wait').default; },

@@ -17,0 +18,0 @@ };

@@ -23,2 +23,3 @@ import * as Errors from '@oclif/errors';

readonly table: typeof Table.default;
readonly tree: typeof import("./styled/tree").default;
readonly open: typeof import("./open").default;

@@ -52,2 +53,3 @@ readonly wait: (ms?: number) => Promise<{}>;

readonly table: typeof Table.default;
readonly tree: typeof import("./styled/tree").default;
readonly open: typeof import("./open").default;

@@ -54,0 +56,0 @@ readonly wait: (ms?: number) => Promise<{}>;

@@ -32,2 +32,3 @@ "use strict";

get table() { return deps_1.default.table; },
get tree() { return deps_1.default.tree; },
get open() { return deps_1.default.open; },

@@ -34,0 +35,0 @@ get wait() { return deps_1.default.wait; },

9

package.json
{
"name": "cli-ux",
"description": "cli IO utilities",
"version": "4.8.2",
"version": "4.9.0",
"author": "Jeff Dickey @jdxcode",

@@ -26,3 +26,4 @@ "bugs": "https://github.com/oclif/cli-ux/issues",

"supports-color": "^5.5.0",
"supports-hyperlinks": "^1.0.1"
"supports-hyperlinks": "^1.0.1",
"treeify": "^1.1.0"
},

@@ -47,4 +48,4 @@ "devDependencies": {

"eslint": "^5.5.0",
"eslint-config-oclif": "^3.0.0",
"fancy-test": "^1.4.0",
"eslint-config-oclif": "^3.1.0",
"fancy-test": "^1.4.1",
"husky": "^0.14.3",

@@ -51,0 +52,0 @@ "mocha": "^5.2.0",

@@ -105,1 +105,25 @@ cli-ux

```
# cli.tree
Generate a tree and display it
```typescript
let tree = cli.tree()
tree.insert('foo')
tree.insert('bar')
let subtree = cli.tree()
subtree.insert('qux')
tree.nodes.bar.insert('baz', subtree)
tree.display()
```
Outputs:
```shell
├─ foo
└─ bar
└─ baz
└─ qux
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc