billboard
v1.0.0
Published
Put a little signage around your message.
Downloads
35
Readme
billboard
Put a little signage around your message.
API
$ npm install --save billboard
var billboard = require('billboard');
console.log( billboard('Welcome!') );
//=>
//=> .----------.
//=> | Welcome! |
//=> '----------'
//=>
console.log( billboard('Welcome!', 20 ) );
//=>
//=> .------------------.
//=> | Welcome! |
//=> '------------------'
//=>
Yeoman Support
You can use billboard with Yeoman generators. Just use the Yeoman generator log around your billboard.
var yeoman = require('yeoman-generator'),
billboard = require('billboard');
var SampleGenerator = yeoman.generators.Base.extend({
initializing: function() {
this.log( billboard('Welcome!', 20 ) );
}
});
module.exports = SampleGenerator;
License
MIT © AutoConX