File-Reader for the Doctrine JSDoc Parser
npm install doctrine-file 
You can install Doctrine-File using npm:
```
$ npm install doctrine-file --save-dev
Import doctrine-File inside of your JavaScript:
`js`
import { parseFile, parseFileContent } from 'doctrine-file';
* file String PathName to a textfileoptions
* Objectcallback
* All options that [doctrine.parse][1] supports, except unwrap which can't be changed.
* Function
The callback is passed two arguments (err, comments), where comments is an array of doctrine results.err
If no JSDocs can be extracted from the file, the array will be empty.
When the file cannot be read will contain the Error.
Here's a simple example:
`js
parseFile('somefile.js', (err, comments) => {
if (err) throw err;
comments.forEach(console.log);
});
`
* content String | Buffer Content of a complete file to be parsedoptions
* Object
* All options that [doctrine.parse][1] supports, except unwrap which can't be changed.
Here's a simple example:
`js
const content = fs.readFileSync('somefile.js', 'utf-8');
const comments = parseFileContent(content);
comments.forEach(console.log);
``
doctrine-file is licensed under the MIT license.
[1]: https://github.com/eslint/doctrine#readme