Skip to content

mmalecki/ansiparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansiparse Build Status

Copyright (C) 2011 by Maciej Małecki
MIT License (see LICENSE file)

ansiparse parses ANSI color codes.

Installation

npm install ansiparse

Usage

var ansiparse = require('ansiparse');
require('colors');
ansiparse('red'.red + ' ' + 'green'.green);
  // => [ { foreground: '31', text: 'red' }, { text: ' ' }, { foreground: '32', text: 'green' } ]

About

Parse ANSI color codes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •