2.0.1 • Published 11 years ago

giftwrap v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
11 years ago

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 *
 ***************/
2.0.1

11 years ago

2.0.0

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago