1.0.2 • Published 7 years ago
file-properties v1.0.2
file-properties
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