@trap_stevo/user-aura

0.0.1 • Public • Published

UserAura

UserAura is a Node.js module that provides information about the current users on the OS and the currently signed-in user. It uses systeminformation to gather real-time session data, and the built-in os module for the primary user details.

Installation

npm install

Usage

const userAura = require('./user-aura');

async function main() {
    const signedInUser = userAura.getSignedInUser();
    console.log("Signed-in user:", signedInUser);

    const allUsers = await userAura.getAllUsers();
    console.log("All current users:", allUsers);
}

main();

Functions

  • getSignedInUser: Returns details of the currently signed-in user.
  • getAllUsers: Asynchronously returns all current user sessions on the OS.

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i @trap_stevo/user-aura

Weekly Downloads

69

Version

0.0.1

License

ISC

Unpacked Size

5.77 kB

Total Files

3

Last publish

Collaborators

  • trap_stevo