MCPcopy Index your code
hub / github.com/RaoHai/react-ansi

github.com/RaoHai/react-ansi @2.1.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.4 ↗ · + Follow
31 symbols 62 edges 19 files 2 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🖥️ React Ansi

A foldable and searchable ansi log viewer for React.

github action

NPM

JavaScript Style Guide

Dependencies

Ci

Coverage Status

log

Highlights

  • Fast and smooth
  • Foldable logs
  • Automatic scrolling
  • Errors detecting and fast navigator
  • Regex search

Install

npm install --save react-ansi

Usage

import * as React from 'react'

import ReactAnsi from 'react-ansi'

function Example() {
  return (
    <ReactAnsi log={"hello world"} />
  )
}

License

MIT © RaoHai

Extension points exported contracts — how you extend this code

SvgrComponent (Interface)
(no doc)
typings.d.ts
ErrorMatcherPattern (Interface)
(no doc)
src/errorMatcher.ts
MatcherOptions (Interface)
(no doc)
src/matcher.ts
FoldableLoggerProps (Interface)
(no doc)
src/index.tsx
LogContent (Interface)
(no doc)
src/component/LogContent.tsx

Core symbols most depended-on inside this repo

_
called by 2
src/utils/i18n.ts
ansiToJSON
called by 2
src/component/RawLogger.tsx
match
called by 1
src/errorMatcher.ts
createClass
called by 1
src/component/RawLogger.tsx
createStyle
called by 1
src/component/RawLogger.tsx
isEmpty
called by 1
src/component/RawLogger.tsx
convertBundleIntoReact
called by 1
src/component/RawLogger.tsx
execute
called by 1
src/model/Spliter.ts

Shape

Function 15
Class 6
Interface 5
Method 5

Languages

TypeScript100%

Modules by API surface

src/component/RawLogger.tsx7 symbols
src/errorMatcher.ts5 symbols
src/model/Spliter.ts4 symbols
src/matcher.ts4 symbols
src/index.tsx3 symbols
src/component/LogContent.tsx2 symbols
typings.d.ts1 symbols
src/utils/i18n.ts1 symbols
src/model/ErrorContext.ts1 symbols
rollup.config.js1 symbols
example/wrapper.tsx1 symbols
example/realtime.tsx1 symbols

For agents

$ claude mcp add react-ansi \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact