npm install docblock-readerA docblock parser. Currently in development, starting with support for docblocks formatted based on
JSDoc and WordPress standards.
```
npm install docblock-reader
OR
``
yarn add docblock-reader
`Javascript
import getDocblocks from 'docblock-reader';
getDocblocks({
files:['./src/index.js', './src/someOtherFile.js'],
context: 'javascript',
callback: console.log
});
`
#### Parameters
| Name | Type | Description | Required/Default |
| -------- | ------------ | ----------------------------------------------------------------------------------------------------- | -------------------- |
| files | array/string | An array of files or a glob (e.g. ./src/*/.js`) | required |
| context | string | The language context for which the docblocks should be parsed. Supports 'wordpress' and 'javascript'. | default 'javascript' |
| callback | function | A callback for handling the parsed docblocks. | required |