
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
windows-localgroups
Advanced tools
A native addon for node.js to query local groups on Windows platforms
C:\Users\myUser>npm install windows-localgroups
var localgroups = require('windows-localgroups')
For each of the three available functions, the user may expect the result of
querying the localhost as the synchronous return value if no callback function
is added to the argument list. Simply supply a callback function as the last
argument to turn the call asynchronous.
A callback function is required if a host other than the localhost is to be
queried.
Note: In some environments, the synchronous functions may throw an Error of
"access is denied to current user", and any of the asynchronous functions may
pass this error to the callback. This would be a consequence of the user's
permissions versus the particular security configuration of the domain.
Synchronous. Returns a list of all local groups defined on the local system.
null} Descriptive commentAsynchronous. Passes a list of all local groups defined on the local system
(or, optionally, on the system named by hostname) to the callback function.
If hostname is given and it is unknown or cannot be accessed, an Error is
passed back.
hostname {String} Optional.undefined, null,
or empty string) may be passed to get the same effect as omitting this argument.callback {Function}
null}Synchronous. Returns a list of member data for the named group if it is known
on the local system; otherwise an Error is thrown.
groupName {String} Name of local group."user", "group", "well-known group", "deleted", "unknown""DomainName\\AccountName")Asynchronous. Passes a list of all member data for the named group (optionally
on the system named by hostname) to the callback function, if the local group
name is known; otherwise an Error is passed to the callback. If hostname is
given and it is unknown or cannot be accessed, an Error is passed back.
groupName {String} Name of local group.hostname {String} Optional.undefined, null,
or empty string) may be passed to get the same effect as omitting this argument.callback {Function}
null}Synchronous. Returns the descriptive comment (or null if none) for the named
group if it is known on the local system; otherwise an Error is thrown.
groupName {String} Name of local group.null} The comment associated with the named groupAsynchronous. Passes the descriptive comment (or null if none) for the named
group (optionally on the system named by hostname) to the callback function,
if the local group name is known; otherwise an Error is passed to the callback.
If hostname is given and it is unknown or cannot be accessed, an Error is
passed back.
groupName {String} Name of local group.hostname {String} Optional.undefined, null,
or empty string) may be passed to get the same effect as omitting this argument.callback {Function}
null}null} The comment associated with the named group,
if no error.License: MIT
FAQs
Native addon for Node.js to query Windows LocalGroup API
We found that windows-localgroups demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.