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

parse-passwd

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-passwd

Parse a passwd file into a list of users.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.1M
decreased by-22.82%
Maintainers
1
Weekly downloads
 
Created

What is parse-passwd?

The parse-passwd npm package is designed to parse the /etc/passwd file from Unix/Linux systems. This file contains user account information, and parsing it can be useful for system administration, security analysis, and user management tasks. The package provides a simple interface to convert the content of the /etc/passwd file into a JavaScript object for easy manipulation and access.

What are parse-passwd's main functionalities?

Parsing /etc/passwd file content

This feature allows you to parse the content of an /etc/passwd file. The code sample demonstrates how to use the parse-passwd package to convert a string representing the content of an /etc/passwd file into an array of user objects. Each object contains information about a user, such as username, password, UID, GID, full name, home directory, and shell.

const parsePasswd = require('parse-passwd');
const passwdContent = 'root:x:0:0:root:/root:/bin/bash\n';
const users = parsePasswd(passwdContent);
console.log(users);

Other packages similar to parse-passwd

Keywords

FAQs

Package last updated on 19 Oct 2016

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