2.0.8 • Published 9 months ago

printformatted-js v2.0.8

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
9 months ago

printFormatted-js

A package to print text with colour in the terminal output for node.js

Usage:

npm install printformatted-js
import { printFormatted } from 'printformatted-js'
var string1 = 'it'
var string2 = 'prints'
var stringEtc = 'colour'
printFormatted('green', string1, string2, stringEtc)

outputs all the text given in one of the 6 specified colours: 'green' | 'red' | 'yellow' | 'white' | 'black' | 'blue'

For version two:

import { printFormattedv2 } from 'printformatted-js'
const node = false //whether you are printing to node console or to regular browser console - the method has to go about it differently depedning no which one
const trace = false //whether to print out a stack trace
//the strings you want to print out
var string1 = 'it'
var string2 = 'prints'
var stringEtc = 'colour'
// the third argument is the colour you want it to be. It can be one of 6 - 'green' | 'red' | 'yellow' | 'white' | 'black' | 'blue'
printFormattedv2(node, trace, 'green', string1, string2, stringEtc)

Note:

Grateful to colour console js for knowing what colour codes could be used for various colours see link

2.0.8

9 months ago

2.0.7

9 months ago

2.0.6

9 months ago

2.0.5

9 months ago

2.0.4

9 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago