1.0.4 • Published 4 years ago

underlined v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Underlined npm Package

The module draws a string of characters of a certain length

Make sure you use a monospaced font!

API

Underlined(input[, options])

input

Type: String

options

Type: Object

options.symbol

Type: String
Default: -

Underline character

options.with_string

Type: Boolean
Default: true

Do include input string into result

options.top

Type: Boolean
Default: false

Draw line at the top

options.bottom

Type: Boolean
Default: true

Draw line at the bottom

options.eol

Type: String
Default: \n

End of line character

Usage

Underlined('Lorem ipsum dolor sit amet, consectetur adipisicing elit');
Lorem ipsum dolor sit amet, consectetur adipisicing elit
--------------------------------------------------------
Underlined('Lorem ipsum dolor sit amet, consectetur adipisicing elit', { top: true });
--------------------------------------------------------
Lorem ipsum dolor sit amet, consectetur adipisicing elit
--------------------------------------------------------
Underlined('Lorem ipsum dolor sit amet, consectetur adipisicing elit', { symbol: '+', with_string: false });
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago