You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

chownr

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chownr

like `chown -R`


Version published
Maintainers
1
Created

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

Package last updated on 06 Apr 2024

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc