0.1.2 • Published 7 years ago

chown v0.1.2

Weekly downloads
38
License
ISC
Repository
github
Last release
7 years ago

chown

Installation

npm install chown

Usage

To change user and group

const chown = require('chown');

chown('some/path', 'some-user', 'some-group')
  .then(() => console.log('chowned successfully.'))
  .catch(err => console.log('There was a problem chowning:', err));

To change user only

const chown = require('chown');

chown('some/path', 'some-user')
  .then(() => console.log('chowned successfully.'))
  .catch(err => console.log('There was a problem chowning:', err));