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 } }

Readme

Keywords

none

Package Sidebar

Install

npm i mode-to-permissions

Weekly Downloads

208

Version

0.0.2

License

none

Last publish

Collaborators

  • mmalecki