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

ditm

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ditm

Create a simple project file structure.

  • 1.1.10
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

ditm

Develop the Initialize Tool Manager

开发初始化工具管理器
You can customize the initialized directory
你可以自定义初始化的目录

Use ditm to quickly build a simple project structure directory
使用ditm可以快速构建一个简单的项目结构目录

how to use?

如何使用?

npm install ditm -g  
  • ditm -v

    Get the version.
    获取版本号

  • ditm init

    initialize the project file.
    初始化项目结构

  • ditm init [obj_name]

    Set the project name, and initialize the project file.
    设置自定义的项目目录名

  • ditm -h

    Get help :).
    获得帮助信息

Generated directory structure

生成的目录结构

-- demo
+-- css
|-- base.css
+-- js
+-- lib
+-- images
+-- index.html
+-- 404.html

customize

You can customize the list of initialized files!
你可以自定义初始化的文件列表!

config.json

{
  "rootName" : "demo",
  "data" : [
    {
      "name" : "index.html",
      "type" : "file"
    }, {
      "name" : "404.html",
      "type" : "file"
    }, {
      "name" : "base.css",
      "type" : "file"
    }, {
      "name" : "css",
      "type" : "dir"
    }, {
      "name" : "js",
      "type" : "dir"
    }, {
      "name" : "images",
      "type" : "dir"
    }, {
      "name" : "lib",
      "type" : "dir"
    }
  ]
}

Change name in data to the name of the file you want
Change type in data to the type you want
Dir is the directory
File is the file

data 中的 name 修改成你要的文件名字
data 中的 type 修改成你要的类型
dir 是目录
file 是文件

Keywords

FAQs

Package last updated on 10 Jun 2017

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