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

nightcatsama

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nightcatsama

for oneself

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ctree

What is ctree?

Through nodeJS quickly generate project directory tree structure. There are four ways:

  • server - Open the local server to view tree
  • img - According to the directory structure spanning tree images
  • page - According to the directory structure to generate the page
  • log - According to the directory structure in the shell, default it

dependencies

  • vue
  • vue-server-renderer
  • phantom

Usage

# globel install
npm install -g ctree

# local install
npm install ctree

# ready
ctree

Option

Can through two ways to configure ctree:

  1. Through .js configuration (default: .dirrc.js)
  2. Through the command to configure.

The priority is command > .js > default

default option:

module.exports = {
  path: './src',
  img_path: './dir.png',
  page_path: './dir.html',
  port: 233
}

through .js setting

//  .dirrc.js
module.exports = {
  path: './test',
  img_path: './tree.jpg',
  page_path: './tree.html'
  port: 233
}

through command setting

  1. project path (default: ./src) example:
ctree -p src

or

ctree --path=src
  1. custom config (default: ./dirrc.js) example:
ctree -c ./config/.dirrc.js

or

ctree --config=./config/.dirrc.js
  1. set port (default: 233) example:
ctree server -d 8080

or

ctree server --port=8080
  1. The path of the generated image (default: ./index.png) example:
ctree img -i img.jpg

or

ctree img --img_path=img.jpg
  1. The path of the generated html (default: ./dir.html) example:
ctree img -h pm.html

or

ctree img --page_page=pm.html

FAQs

Package last updated on 17 Dec 2016

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

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