
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@uipath/common
Advanced tools
Affected versions:
Shared infrastructure for the UiPath CLI. Provides output formatting, logging, error handling, and telemetry.
npm install @uipath/common
import { OutputFormatter } from "@uipath/common";
OutputFormatter.success({ Result: "Success", Code: "AssetList", Data: assets });
OutputFormatter.error({ Result: RESULTS.Failure, Message: "Not found", Instructions: "Check the ID" });
Supported formats: table, json, yaml, plain.
Go-style [error, data] tuple returns via catchError:
import { catchError } from "@uipath/common";
const [error, result] = await catchError(api.getData());
if (error) {
OutputFormatter.error({ Result: RESULTS.Failure, Message: error.message, Instructions: "Retry" });
return;
}
import { logger, LogLevel } from "@uipath/common";
logger.info("Fetching resources...");
logger.debug("Request payload:", payload);
// Override level at runtime
logger.setLevel(LogLevel.DEBUG);
| Method | Level | Stream | Visible by default |
|---|---|---|---|
logger.debug | DEBUG | stdout | No |
logger.info | INFO | stdout | Yes |
logger.warn | WARN | stdout | Yes |
logger.error | ERROR | stderr | Yes |
Debug output is enabled via DEBUG env var (Node/Bun) or localStorage.debug (browser).
| Export | Description |
|---|---|
OutputFormatter | Structured output in table, JSON, YAML, or plain text |
catchError(promise) | Go-style error handling returning [error, data] tuples |
logger | Cross-platform logger with debug/info/warn/error levels |
trackedAction | Commander.js extension for automatic telemetry tracking |
CommandWalker | CLI command introspection utility |
OutputSink | Abstraction for output destinations |
See the root repository for license information.
FAQs
Common infrastructure needed by uip tools.
The npm package @uipath/common receives a total of 863 weekly downloads. As such, @uipath/common popularity was classified as not popular.
We found that @uipath/common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 24 open source maintainers 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
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.