Skip to content

gr2m/string-to-jsdoc-comment

Repository files navigation

string-to-jsdoc-comment

Turns a string into a JSDoc comment

Build Status Greenkeeper

const { stringToJsdocComment } = require('string-to-jsdoc-comment')

const comment = stringToJsdocComment('Here is some description.')

comment is now

/**
 * Here is some description.
 */

Credit

This method was extracted from @octokit/rest. The original method was implemented by @gimenete.

License

ICS

About

Turns a string into a JSDoc comment

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published