Skip to content

gabrielcsapo/krayon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

krayon

🖍 make javascript colorful

Npm Version Build Status Coverage Status Dependency Status devDependency Status npm npm

Installation

npm install krayon --save

Usage

require('krayon/dist/krayon.css');

const krayon = require('krayon');

// This will colorize your javascript and output an HTML string
krayon(`
  // this is a cool library check it out
  let table = new Turtler([
    ["uid", "name"],
    ["1", "Doe"],
    ["2", "Hemma"]
  ], {
    hasHeader: true,
    columnSeperator: ' | ',
    headerSeperator: '='
  });

  console.log(table);
`);