index.js
function extract(str, options, tranformFn) {
  let extractor = new Extractor(options, tranformFn);
  return extractor.extract(str);
}
function extract(str, options, tranformFn) {
  let extractor = new Extractor(options, tranformFn);
  return extractor.extract(str);
}
function extract ( str , options , tranformFn ) { let extractor = new Extractor ( options , tranformFn ) ; return extractor . extract ( str ) ; }
Extract comments from the given `string`.

```js
const extract = require('extract-comments');
console.log(extract(string, options));
```
@param {String} `string`
@param {Object} `options` Pass `first: true` to return after the first comment is found.
@param {Function} `tranformFn` (optional) Tranform function to modify each comment
@return {Array} Returns an array of comment objects
@api public
Extract comments from the given string .