UNPKG

@rianbotha/react-doc-md

Version:

A markdown readme generator for React components.

7 lines (5 loc) 192 B
const stripComments = (str) => ( // This is a little blunt, but can be improved when we run into problems str.replace(/\/\*(.|[\r\n])*?\*\/(\s)?/g, '') ); module.exports = stripComments;