Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rnx-kit/console

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnx-kit/console

Simple console logger

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

@rnx-kit/console

Build npm version

@rnx-kit/console is a simple console logger that is a subset of the logger in @react-native-community/cli-tools. It is used by Metro plugins to ensure that log lines are consistent with @react-native-community/cli.

Ideally, we should be using the reporter that is passed to Metro but we don't have access to it from the customSerializer hook. The next best thing would be to use @react-native-community/cli-tools but it includes a bunch of other tools and we cannot take a dependency on any single version since we need to support multiple versions of react-native (and hence multiple versions of @react-native-community/cli-tools).

Other libraries, such as just-task-logger, were also considered. However, the purpose of this package is to match with the output of @react-native-community/cli. just-task-logger in particular uses its own colour scheme and doesn't allow configuring them to match the colour scheme.

Install

yarn add @rnx-kit/console --dev

Usage

import { error, info, warn } from "@rnx-kit/console";

error("This is an error message");
info("This is an informational message");
warn("This is a warning");

FAQs

Package last updated on 29 Jul 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc