justo.plugin.group

1.0.0-alpha2.0 • Public • Published

justo.plugin.group

Justo plugin for working with OS user groups. It's compatible with Alpine and Ubuntu. It's local and SSH-compatible.

Developed in Dogma, compiled to JavaScript.

Proudly made with ♥ in Valencia, Spain, EU.

Use

const group = require("justo.plugin.group");

group.exists task

This task checks if a group exists:

group.exists({name}) : bool
  • name (string, required). Group name.

Example:

if (!group.exists({name: "mygrp"})) {
  group.add({name: "mygrp"});
}

group.add task

This task adds a group:

group.add({name, sys, gid})
  • name (string. required). Group name.
  • gid (number). GID.
  • sys (bool). Is it a system group? Default: false.

Example:

group.add({name: "mygroup"});

group.del task

This task removes a group:

group.del({name})
  • name (string, required). Group name.

Example:

group.del({name: "mygroup"});

Readme

Keywords

Package Sidebar

Install

npm i justo.plugin.group

Homepage

justo.rocks

Weekly Downloads

0

Version

1.0.0-alpha2.0

License

none

Last publish

Collaborators

  • justojs