fs-mode-to-string
Create a Unix-like permissions string from an
fs.stat
file or directorymode
, eg0777
to-rwxrwxrwx
Install
npm i -S fs-mode-to-string
Usage
var fs = ;var modeString = ;// Pass an fs.stat objectvar dirMode = fs;console;// -> 'drwxr--r--'// Pass an integerconsole;// -> '-rwxrwxrwx'