billboard
Version:
Put a little signage around your message.
52 lines (35 loc) • 1.01 kB
Markdown
> Put a little signage around your message.
```sh
$ npm install --save billboard
```
```js
var billboard = require('billboard');
console.log( billboard('Welcome!') );
//=>
//=> .----------.
//=> | Welcome! |
//=> '----------'
//=>
console.log( billboard('Welcome!', 20 ) );
//=>
//=> .------------------.
//=> | Welcome! |
//=> '------------------'
//=>
```
You can use billboard with Yeoman generators. Just use the Yeoman generator log around your billboard.
```js
var yeoman = require('yeoman-generator'),
billboard = require('billboard');
var SampleGenerator = yeoman.generators.Base.extend({
initializing: function() {
this.log( billboard('Welcome!', 20 ) );
}
});
module.exports = SampleGenerator;
```
MIT © [AutoConX](http://www.autoconx.com)