Package Exports
- ansi-to-react
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ansi-to-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ANSI to React
Convert ANSI Escape Codes to pretty text output for React.
Installation
You may use whichever package manager (npm
or yarn
) best suits your workflow. The nteract
team internally uses yarn
.
npm install --save ansi-to-react
# OR
yarn add ansi-to-react
Type Checking
In order to type check, we invoke yarn build, which calls the typescript compiler.
Usage
const Ansi = require('ansi-to-react');
...
<Ansi>
{'\u001b[34mnode_modules\u001b[m\u001b[m'}
</Ansi>