Skip to main content

GitHub package.json version npm (scoped) NPM Downloads NPM Downloads

How to install the xPack Mock Console

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/mock-console 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/mock-console is:

npm install @xpack/mock-console@latest

To install a specific version, mention it explicitly:

npm install @xpack/mock-console@1.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/mock-console can be uninstalled from the project and the dependency removed from package.json with:

npm uninstall @xpack/mock-console