Skip to content

imeoer/ansi-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Ansi to Html

Based on the coffee script code in https://npmjs.org/package/ansi-to-html and translated to js with: http://js2coffee.org/ and stylized a bit.

I don't know too much about modules and packages in js or node, but this works nice in angular.

Usage

Just include the file and in any place you want to use add the dependency to your module: var app = angular.module('app', ['ansiToHtml']) and inject the object ansi2html:

var app = angular.module('app', ['ansiToHtml']);

app.controller('contr', function($scope, ansi2html) {
     $scope.text = ansi2html.toHtml("some ansi text"); 
})

About

Convert ansi string to colored html, based on: https://npmjs.org/package/ansi-to-html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published