justo.plugin.group
v1.0.0-alpha2.0
Published
Justo plugin for working with OS user groups.
Readme
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}) : boolname(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"});