Skip to content
🌈 Create color text with simpler style strings in Ink
Branch: master
Clone or download
Latest commit e31e0e7 Mar 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Initial commit Mar 9, 2019
.gitignore
.npmrc
.travis.yml
LICENSE Initial commit Mar 8, 2019
README.md Fix screenshot Mar 12, 2019
demo.js
index.js
package.json
screenshot.svg Update screenshot Mar 12, 2019
test.js Initial commit Mar 9, 2019
test.js.md Initial commit Mar 9, 2019
test.js.snap

README.md

ink-color-pipe

chalk-pipe component for Ink

Create color text with simpler style strings in Ink

Install

$ npm i ink-color-pipe

Usage

import React from 'react';
import {render} from 'ink';
import ColorPipe from 'ink-color-pipe';

render(
	<ColorPipe styles="orange.bold.underline">
		Unicorn
	</ColorPipe>
);

API

<ColorPipe>

styles

Type: string

Use dot . to separeate multiple styles.

Valid Styles

Related

  • chalk-pipe - Create chalk style schemes with simpler style strings

License

MIT Β© LitoMore

You can’t perform that action at this time.