nearform-terminal-logo
v1.1.1
Published
A small app that allows nearformers to include an CLI logo in any CLI tools they may be building - ... looking at you nscale :)
Downloads
2
Readme
terminal-logo
A small app that allows nearformers to include an CLI logo in any CLI tools they may be building - ... looking at you nscale :)
Usage
logo(options);
options - an options object which has two attributes:
- leftPadding: represents left padding in terminal points (monospaced characters). This is optional and by default, the logo is placed in the middle of the terminal.
- text: Text to be displayed beside the logo. This is also optional.
Note: logo()
can be called without any options which will print the logo to the middle of the terminal.
Also has a toTTY(options)
method, that writes directly to process.stdout
.
require('nearform-terminal-logo').toTTY({leftPadding: 20});
Example
var logo = require('nearform-terminal-logo');
console.log(logo({leftPadding: 20, text: '\u00A9 nearform ltd. 2015'}));