mode-to-permissions
Convert file mode numeral to a convenient object describing file permissions.
Usage
var modeToPermissions = ;consoledir;
Outputs:
{ read: { owner: true, group: true, others: true },
write: { owner: true, group: true, others: true },
execute: { owner: true, group: true, others: true } }