Skip to content

The module draws a string of characters of a certain length

License

Notifications You must be signed in to change notification settings

tpkn/underlined-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 });
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

About

The module draws a string of characters of a certain length

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published