file-properties

1.0.2 • Public • Published

file-properties ![Build Status]

Get the latest file-properties.

Install

  npm install file-properties                    

Usage

  import random from 'file-properties'   or require('file-properties');
  
  var test =require('file-properties');
  console.log(test.getFileProperties())             

  //output
    { path: '-----',
  information:
   Stats {
     dev: 3367541589,
     mode: 33206,
     nlink: 1,
     uid: 0,
     gid: 0,
     rdev: 0,
     blksize: undefined,
     ino: 844424930847330,
     size: 400,
     blocks: undefined,
     atimeMs: 1513598587128.1682,
     mtimeMs: 1513598587129.1675,
     ctimeMs: 1513598587165.3706,
     birthtimeMs: 1513598587128.1682,
     atime: 2017-12-18T12:03:07.128Z,
     mtime: 2017-12-18T12:03:07.129Z,
     ctime: 2017-12-18T12:03:07.165Z,
     birthtime: 2017-12-18T12:03:07.128Z },
  isDirectory: false,
  isFile: true,
  mode:
   { owner: { read: 'e', write: 'w', execute: 'x' },
     group: { read: 'r', write: 'w', execute: 'e' },
     others: { read: 'r', write: 'w', execute: '-' } } }


License

MIT © [Hemanth.cb]

Package Sidebar

Install

npm i file-properties

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • hemanthcb