The preparatory work

Installation node. Js

Install Node. You can download it from the official website

Install the MDdir module

After NPM install mddir –save is executed, the node module is installed in the root directory named node_modules

Generated directory

  1. CD to the destination directoryTestDemo
  2. performnode ~/node_modules/mddir/src/mddir.js
  3. One will be generated in the destination directorydirectoryList.mdfile
  4. Open the file copy and paste

The effect

In the output, the directory is ignored. You need to manually modify the directory

| | - Desktop (need to manually change to TestDemo) - media | | -- picture1. File | | -- picture2. File | - SRC | -- code1. File | -- code2. The fileCopy the code