string-to-jsdoc-comment

1.0.0 • Public • Published

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

Dependents (2)

Package Sidebar

Install

npm i string-to-jsdoc-comment

Weekly Downloads

22

Version

1.0.0

License

ISC

Unpacked Size

3.01 kB

Total Files

6

Last publish

Collaborators

  • gr2m