Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielcsapo/krayon
🖍 make javascript colorful
https://github.com/gabrielcsapo/krayon
colorize javascript utility
Last synced: 6 days ago
JSON representation
🖍 make javascript colorful
- Host: GitHub
- URL: https://github.com/gabrielcsapo/krayon
- Owner: gabrielcsapo
- License: apache-2.0
- Created: 2018-01-12T06:08:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-04T06:27:14.000Z (over 5 years ago)
- Last Synced: 2024-12-24T12:27:07.503Z (10 days ago)
- Topics: colorize, javascript, utility
- Language: JavaScript
- Homepage: https://gabrielcsapo.github.io/krayon
- Size: 207 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# krayon
> 🖍 make javascript colorful
[![Npm Version](https://img.shields.io/npm/v/krayon.svg)](https://www.npmjs.com/package/krayon)
[![Build Status](https://travis-ci.org/gabrielcsapo/krayon.svg?branch=master)](https://travis-ci.org/gabrielcsapo/krayon)
[![Coverage Status](https://lcov-server.gabrielcsapo.com/badge/github%2Ecom/gabrielcsapo/krayon.svg)](https://lcov-server.gabrielcsapo.com/coverage/github%2Ecom/gabrielcsapo/krayon)
[![Dependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/krayon/status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/krayon)
[![devDependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/krayon/dev-status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/krayon#info=devDependencies)
[![npm](https://img.shields.io/npm/dt/krayon.svg)]()
[![npm](https://img.shields.io/npm/dm/krayon.svg)]()## Installation
```
npm install krayon --save
```## Usage
```js
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);
`);
```