title: Get all files with infos(name, type, size) within directory node-fs
body: <p>I have a <strong><em>route</em></strong> to a location where I want to make a read</p>
  
  <pre><code>var route = ('F:\\uploads\\ponys');
  </code></pre>
  
  <p>with <code>var rez = fs.readdirSync(route, 'utf8');</code> it return an Array of all files(and folders) inside of the route.</p>
  
  <pre><code>console.log(rez);
  [ 'file.rtf',
    'Course.rtf',
    'extra.png',
    'ar102.rar',
    'New folder']
  </code></pre>
  
  <p>I want to return an JSON Object which contains name, type and size. How I can proceed to obtain this:</p>
  
  <pre><code>{
    "files":[
      {"name": "file", "type": "rtf", "size": 3445},  [or with "."(.rtf)]
      {"name": "Course", "type": "rtf", "size": 900},
      {"name": "extra", "type": "png", "size": 2424},
      {"name": "ar102", "type": "rar", "size": 340432},
      {"name": "New folder", "type": "", "size": 123456789} 
    ]
  }
  </code></pre>