giftwrap

2.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i giftwrap

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • lokua