1. string-to-jsdoc-comment
Turns a string into a JSDoc comment
string-to-jsdoc-comment
Package: string-to-jsdoc-comment
Created by: gr2m
Last modified: Wed, 18 May 2022 20:55:08 GMT
Version: 1.0.0
License: ISC
Downloads: 476
Repository: https://github.com/gr2m/string-to-jsdoc-comment

Install

npm install string-to-jsdoc-comment
yarn add string-to-jsdoc-comment

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code