giftwrap
v2.0.1
Published
command line util to generate decorated comment headers
Downloads
4
Readme
giftwrap
stupid little CLI tool to generate decorated comment headers
Install
npm install -g giftwrap
Usage
cli:
giftwrap <comment> [style]
script:
var giftwrap = require('giftwrap');
var wrapped = giftwrap('this is a\nmultiline comment');
// +-------------------+
// | this is a |
// | multiline comment |
// +-------------------+
Styles
second argument, integer 0-3
0 (default)
// +-------------+
// | HELLO WORLD |
// +-------------+
1
/*-------------+
| HELLO WORLD |
+-------------*/
2
/*-------------*\
| HELLO WORLD |
\*-------------*/
3
/***************
* HELLO WORLD *
***************/