UNPKG

jsdoc-typeof-plugin

Version:

[![Build Status](https://travis-ci.org/cancerberoSgx/jsdoc-typeof-plugin.png?branch=master)](https://travis-ci.org/cancerberoSgx/jsdoc-typeof-plugin) [![Dependencies](https://david-dm.org/cancerberosgx/jsdoc-typeof-plugin.svg)](https://david-dm.org/cancer

12 lines (11 loc) 357 B
const shell = require('shelljs') shell.config.silent = true exports.jsdoc = function (configFile) { let p = shell.exec('node node_modules/jsdoc/jsdoc.js -c ' + configFile + ' -X') if (p.code != 0) { console.log('ERROR executing jsdoc: ', p.stderr) return {} } let output = p.stdout.toString() return JSON.parse(output) }