code: function _doMain(jsonObj,isDir2TreeStr){
      if(false!==jsonObj){
          isDir2TreeStr = !!isDir2TreeStr;
          let treeStr;
          try{
              // console.time(colorful.green("\nConvert takes"));
              treeStr = jsonToy.treeString(jsonObj,{
                  rootName: jsonName,
                  space: s,
                  vSpace: v,
                  needValueOut: outputVal,
                  msReturnChar: needMsEol
              });
              // console.timeEnd(colorful.green("\nConvert takes"));
          }catch(e2){
              errorOut(e2.toString());
          }
          if(!!treeStr){
              if(!isDir2TreeStr){
                  console.log(treeStr);
              }else{
                  // 当显示的是文件目录，将"文件夹"字段变成蓝色显示，这里仅仅是对显示进行转换，而不对源内容转换，因为远内容还要用做复制到剪切板
                  let newTreeStr = "" + treeStr;
                  let resArr = [];
                  let filterOutStr = " (ignored) /";
                  newTreeStr.split("\n").forEach(k=>{
                      k = k.replace(/\r/g,"");
                      let mt = k.match(/[└├─]\s([\S]+[\s\S]*\s\/$)/);
                      if(mt && mt[1]){
                          let ov = mt[1],nv;
                          if(ov.substr(-filterOutStr.length) === filterOutStr){
                            let foArr = ov.split(filterOutStr);
                            nv = colorful.cyan(foArr[0]) + colorful.gray(filterOutStr);
                          }else{
                              nv = colorful.cyan(ov);
                          }
                          k = k.replace(ov,nv);
                      }
                      resArr.push(k);
                  });
                  console.log(resArr.join("\n"));
              }
              if(!Type.isObject.isEmptyOwn(jsonObj) && needCopy){
                  clipboardy.write(treeStr)
                      .then(()=>console.log(colorful.success("Copy tree-string success!")));
              }
          }
      }
  }
docs: convert and print and copy a tree-string from a json obj