Manage system groups and user membership.
Part of Nodevisor — TypeScript Infrastructure Automation Platform
npm install @nodevisor/groupsimport $ from '@nodevisor/shell';
import Groups from '@nodevisor/groups';
const groups = $(Groups);
// Create a group
await groups.add('docker');
// Add a user to the group
await groups.addUser('runner', 'docker');
// Check membership
const userGroups = await groups.userGroups('runner');
console.log(userGroups); // ["runner", "docker"]const $server = $.connect({ host: '10.0.0.10', username: 'root' });
await $server(Groups).addUser('runner', 'docker');@nodevisor/users— Create and manage users@nodevisor/docker—Docker.allowUser()uses Groups internally
Full documentation available at nodevisor.com/docs/packages/groups
Nodevisor uses a single O'Saasy license across all packages and applications. See the full terms in LICENSE.

