Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mode-to-permissions

mmalecki1.4k0.0.2

Convert file mode numeral to a convenient object describing file permissions

readme

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