0.1.2 • Published 8 years ago

string-to-comments v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

String to Comments

Pretty straightforward script. All this does is convert strings to comments.

Usage (with CommonJS module system)

var s2c = require('string-to-comments');

// Output:
// /**
//  * HEYA!
//  */
s2c.convert('HEYA!');

// Output: // HEYA!
s2c.convert('HEYA!', true);

Usage (no module system)

s2c will be exposed to the global namespace.