Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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`

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
40M
increased by2.59%
Maintainers
1
Weekly downloads
 
Created

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

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc