Easily draw lines in your console logs.
Find a file
2018-03-23 16:46:41 -05:00
.gitignore Initial commit 2018-03-23 09:53:07 -05:00
index.js Let there be lines! 2018-03-23 16:46:41 -05:00
LICENSE Initial commit 2018-03-23 09:53:07 -05:00
package.json Let there be lines! 2018-03-23 16:46:41 -05:00
README.md Let there be lines! 2018-03-23 16:46:41 -05:00

console-line

Easily draw lines in your console logs.

Why?

Because I got sick of typing out console.log('---------...--') when I wanted to have a visual indicator in my logs while debugging and stuff.

Installation

npm install console-line
yarn add console-line

Usage

// Require and [optionally] configure your line
const line = require('console-line')(80, '-');

// Log a line to the console
line.log();

// Fence some text between lines
line.fence('Some fenced in text');

// Get the raw string for the line so you can do non-logging things with it
const lineString = line.line;

// Add it to console object so the name of this package makes sense
console.line = line.log;

License

MIT