Miss any of our Open RFC calls?Watch the recordings here! »

mode-to-permissions

0.0.2 • Public • Published

mode-to-permissions

Convert file mode numeral to a convenient object describing file permissions.

Usage

var modeToPermissions = require('mode-to-permissions');
console.dir(modeToPermissiones(0777));

Outputs:

{ read: { owner: true, group: true, others: true },
  write: { owner: true, group: true, others: true },
  execute: { owner: true, group: true, others: true } }

Keywords

none

Install

npm i mode-to-permissions

DownloadsWeekly Downloads

31

Version

0.0.2

License

none

Last publish

Collaborators

  • avatar