nodefony-starter

Nodefony Finder


Finder Create instance :

#!/usr/bin/env node

        const nodefony = require("nodefony");

        const finder = new nodefony.finder();

        console.log(finder);
        /*
        Finder {
          path: [],
          errorParse: [],
          settings:
           { path: null,
             sync: true,
             recurse: true,
             depth: -1,
             seeHidden: false,
             match: null,
             exclude: null,
             followSymLink: false,
             json: false }
        }
        */
        finder.in(path.resolve("node_modules"));

        console.log(finder);
        /*
        Finder {
          path:
           [ File {
               stats: [Stats],
               type: 'Directory',
               path: '/Users/cci/repository/nodefony-core/node_modules',
               parse: [Object],
               name: 'node_modules',
               ext: '',
               shortName: 'node_modules',
               dirName: '/Users/cci/repository/nodefony-core',
               match: null } ],
          errorParse: [],
          settings:
           { path: null,
             sync: true,
             recurse: true,
             depth: -1,
             seeHidden: false,
             match: null,
             exclude: null,
             followSymLink: false,
             json: false },
          tree: false,
          wrapper: [Function: File],
          typePath: 'string'
        }
        */