Socket
Socket
Sign inDemoInstall

chownr

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

chownr

like `chown -R`


Version published
Maintainers
1
Weekly downloads
36,358,667
decreased by-8.41%

Weekly downloads

Package description

What is chownr?

The chownr npm package is a Node.js module that allows you to recursively change the owner and group of a file or directory tree. It is a simple utility that operates similarly to the Unix 'chown -R' command, but it is implemented in Node.js for use within scripts or Node.js applications.

What are chownr's main functionalities?

Recursively change owner

This feature allows you to change the owner of a directory and all its subdirectories and files to the specified user ID (uid) and group ID (gid).

const chownr = require('chownr');

chownr('/path/to/dir', uid, gid, (err) => {
  if (err) throw err;
  console.log('Changed ownership recursively!');
});

Other packages similar to chownr

Readme

Source

Like chown -R.

Takes the same arguments as fs.chown()

FAQs

Last updated on 12 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc