get-mode
A Node.js module to get a file mode
const getMode = ; async { const mode = ; //=> 33188 mode; //=> '100644'};
Installation
npm install get-mode
API
const getMode = ;
getMode(path [, option])
path: string
Buffer
URL
(file, directory or symbolic link path)
option: Object
Return: Promise<Integer>
option.followSymlinks
Type: boolean
Default: false
Whether to resolve all symbolic links before checking the mode, or get the mode of the symbolic link file itself.
async { await ; //=> '120755' await ; //=> '40755'};
License
ISC License © 2017 Shinnosuke Watanabe