1.0.0 • Published 9 years ago

billboard v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

billboard Build Status

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