fancy-hr
Yield a fancy <hr /> in Node applications.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fancy-hr 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 4
Dependencies (0)
None
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |