fancy-hr

0.0.2 • Public • Published

fancy-hr NPM version NPM downloads Build Status

Yield a fancy <hr /> in Node applications.

Install

$ npm install --save fancy-hr

Usage

const hr = require('fancy-hr')

hr()
//=> ----------------

hr('fire')
//=> ------fire------

API

hr([text, width, char])

text

Text to display in the center of hr, default is an empty string.

width

The width of hr, default is 15.

char

The char to make up hr, default is -.

License

MIT © EGOIST

/fancy-hr/

    Package Sidebar

    Install

    npm i fancy-hr

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • kchan