billboard

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i billboard

Weekly Downloads

22

Version

1.0.0

License

MIT

Last publish

Collaborators

  • awayken