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

ansi-to-react

Package Overview
Dependencies
Maintainers
15
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-to-react

ANSI to React Elements

  • 4.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26K
decreased by-11.22%
Maintainers
15
Weekly downloads
 
Created
Source

@nteract/ansi-to-react

This package convert ANSI escape codes to formatted text output for React.

Installation

$ yarn add @nteract/ansi-to-react
$ npm install --save @nteract/ansi-to-react

Usage

The example below shows how we can use this package to render a string with ANSI escape codes.

import Ansi from "@nteract/ansi-to-react";

export function () => {
  return <Ansi>
    {'\u001b[34mnode_modules\u001b[m\u001b[m'}
  </Ansi>;
};

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:ansi-to-react label.

License

BSD-3-Clause

Keywords

FAQs

Package last updated on 14 Jan 2019

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