Skip to main content

How to install the xPack Logger

GitHub package.json version NPM Version NPM Downloads NPM Downloads

Prerequisites

A recent Node.js (>=18.0.0), since the TypeScript code is compiled into ECMAScript 2020 code, and the tests use ES6 modules.

Install

The package is available as @xpack/logger from the public npmjs repository; it can be added as a dependency to any TypeScript or JavaScript project.

The command to install the latest available version of @xpack/logger is:

npm install @xpack/logger@latest

To install a specific version, mention it explicitly:

npm install @xpack/logger@6.0.0

The package does not provide any executables, and generally there are no reasons to install it globally.

Uninstall

As any npm package, @xpack/logger can be uninstalled from the project and the dependency removed from package.json with:

npm uninstall @xpack/logger