{"name":"jsdoc-api","version":"1.0.4","keywords":["jsdoc","api","programmatic","interface","javascript","documentation"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"jsdoc-api@1.0.4","homepage":"https://github.com/jsdoc2md/jsdoc-api#readme","bugs":{"url":"https://github.com/jsdoc2md/jsdoc-api/issues"},"dist":{"shasum":"0269b5c01022436928b1d0efc07496551626a332","tarball":"http://registry-npm.ywwl.com/jsdoc-api/download/jsdoc-api-1.0.4.tgz","integrity":"sha512-jtx5r8/jECCp2qNgDKm7MTEhOqpLFv6qs0TG28hWaxoGeX4jJuKWEN/afLpLIrgGnc+AySIKfQK8Dz5XjqF9Fg==","signatures":[{"sig":"MEYCIQDPMC1OhvPxnlh7d9hUXY9tjGzLSq5YOBcWe0SceJJLDwIhAI4N6EMJn5QQ8JYOd9lVt36OZOkmjMuzCWnCtB/KEm+d","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":426144,"noattachment":false,"key":"/jsdoc-api/-/jsdoc-api-1.0.4.tgz"},"main":"index","_from":".","_shasum":"0269b5c01022436928b1d0efc07496551626a332","engines":{"node":">=0.10.0"},"gitHead":"d2c4e8699d738b133a3c615e5744ce166bafc646","scripts":{"es5":"babel --presets babel-preset-es2015 --no-comments lib --out-dir es5","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","test":"tape test/*.js","cover":"istanbul cover ./node_modules/.bin/tape test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"standard":{"ignore":["es5","tmp"]},"repository":{"url":"git+https://github.com/jsdoc2md/jsdoc-api.git","type":"git"},"_npmVersion":"3.5.3","description":"A programmatic interface for jsdoc","directories":{},"_nodeVersion":"5.3.0","dependencies":{"core-js":"^2.0.0","file-set":"^0.2.8","temp-path":"^1.0.0","walk-back":"^1.0.1","array-back":"^1.0.2","jsdoc-75lb":"^3.5","collect-all":"~0.2.0","collect-json":"^1.0.0","command-line-args":"^2.1.3","feature-detect-es6":"^1.2.0","object-to-spawn-args":"^1","promise.prototype.finally":"^1.0.1"},"devDependencies":{"tape":"^4.2.2","rimraf":"^2.4.4","coveralls":"^2.11.6","jsdoc2md-testbed":"0.0.7","jsdoc-to-markdown":"^1.3.1","babel-preset-es2015":"^6.3.13"},"readme":"[![view on npm](https://badgen.net/npm/v/jsdoc-api)](https://www.npmjs.org/package/jsdoc-api)\n[![npm module downloads](https://badgen.net/npm/dt/jsdoc-api)](https://www.npmjs.org/package/jsdoc-api)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/jsdoc2md/jsdoc-api)](https://github.com/jsdoc2md/jsdoc-api/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/jsdoc2md/jsdoc-api)](https://github.com/jsdoc2md/jsdoc-api/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/jsdoc2md/jsdoc-api/actions/workflows/node.js.yml/badge.svg)](https://github.com/jsdoc2md/jsdoc-api/actions/workflows/node.js.yml)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# jsdoc-api\n\nA programmatic interface for [jsdoc3](https://github.com/jsdoc3/jsdoc) with a few features:\n\n- Sync and async (Promise) interfaces on the two main jsdoc operations ('explain' and 'render documentation').\n- Input (source code) can supplied as a string or set of file names/globs.\n- Optional caching, dramatically speeding up future invocations with the same input.\n\n## Synopsis\n\n```js\n> const jsdoc = require('jsdoc-api')\n\n> jsdoc.explainSync({ source: '/** example doclet */ \\n var example = true' })\n[ { comment: '/** example doclet *∕',\n   meta:\n    { range: [ 28, 42 ],\n      filename: 'nkrf18zlymohia4i29a0zkyt84obt9.js',\n      lineno: 2,\n      path: '/var/folders/74/tqh7thm11tq72d7sjty9qvdh0000gn/T',\n      code:\n       { id: 'astnode100000002',\n         name: 'example',\n         type: 'Literal',\n         value: true } },\n   description: 'example doclet',\n   name: 'example',\n   longname: 'example',\n   kind: 'member',\n   scope: 'global' },\n { kind: 'package',\n   longname: 'package:undefined',\n   files: [ '/var/folders/74/tqh7thm11tq72d7sjty9qvdh0000gn/T/nkrf18zlymohia4i29a0zkyt84obt9.js' ] } ]\n```\n\n# API Reference\n\n\n* [jsdoc-api](#module_jsdoc-api)\n    * _static_\n        * [.cache](#module_jsdoc-api.cache) : [<code>cache-point</code>](https://github.com/75lb/cache-point)\n        * [.explainSync([options])](#module_jsdoc-api.explainSync) ⇒ <code>Array.&lt;object&gt;</code>\n        * [.explain([options])](#module_jsdoc-api.explain) ⇒ <code>Promise</code>\n        * [.renderSync([options])](#module_jsdoc-api.renderSync)\n    * _inner_\n        * [~JsdocOptions](#module_jsdoc-api..JsdocOptions)\n            * [.files](#module_jsdoc-api..JsdocOptions+files) : <code>string</code> \\| <code>Array.&lt;string&gt;</code>\n            * [.source](#module_jsdoc-api..JsdocOptions+source) : <code>string</code>\n            * [.cache](#module_jsdoc-api..JsdocOptions+cache) : <code>boolean</code>\n            * [.access](#module_jsdoc-api..JsdocOptions+access) : <code>string</code>\n            * [.configure](#module_jsdoc-api..JsdocOptions+configure) : <code>string</code>\n            * [.destination](#module_jsdoc-api..JsdocOptions+destination) : <code>string</code>\n            * [.encoding](#module_jsdoc-api..JsdocOptions+encoding) : <code>string</code>\n            * [.private](#module_jsdoc-api..JsdocOptions+private) : <code>boolean</code>\n            * [.package](#module_jsdoc-api..JsdocOptions+package) : <code>string</code>\n            * [.pedantic](#module_jsdoc-api..JsdocOptions+pedantic) : <code>boolean</code>\n            * [.query](#module_jsdoc-api..JsdocOptions+query) : <code>string</code>\n            * [.recurse](#module_jsdoc-api..JsdocOptions+recurse) : <code>boolean</code>\n            * [.readme](#module_jsdoc-api..JsdocOptions+readme) : <code>string</code>\n            * [.template](#module_jsdoc-api..JsdocOptions+template) : <code>string</code>\n            * [.tutorials](#module_jsdoc-api..JsdocOptions+tutorials) : <code>string</code>\n\n<a name=\"module_jsdoc-api.cache\"></a>\n\n### jsdoc.cache : [<code>cache-point</code>](https://github.com/75lb/cache-point)\nThe [cache-point](https://github.com/75lb/cache-point) instance used when `cache: true` is specified on `.explain()` or `.explainSync()`.\n\n**Kind**: static property of [<code>jsdoc-api</code>](#module_jsdoc-api)  \n<a name=\"module_jsdoc-api.explainSync\"></a>\n\n### jsdoc.explainSync([options]) ⇒ <code>Array.&lt;object&gt;</code>\nReturns jsdoc explain output.\n\n**Kind**: static method of [<code>jsdoc-api</code>](#module_jsdoc-api)  \n**Prerequisite**: Requires node v0.12 or above  \n\n| Param | Type |\n| --- | --- |\n| [options] | [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions) | \n\n<a name=\"module_jsdoc-api.explain\"></a>\n\n### jsdoc.explain([options]) ⇒ <code>Promise</code>\nReturns a promise for the jsdoc explain output.\n\n**Kind**: static method of [<code>jsdoc-api</code>](#module_jsdoc-api)  \n**Fulfil**: <code>object[]</code> - jsdoc explain output  \n\n| Param | Type |\n| --- | --- |\n| [options] | [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions) | \n\n<a name=\"module_jsdoc-api.renderSync\"></a>\n\n### jsdoc.renderSync([options])\nRender jsdoc documentation.\n\n**Kind**: static method of [<code>jsdoc-api</code>](#module_jsdoc-api)  \n**Prerequisite**: Requires node v0.12 or above  \n\n| Param | Type |\n| --- | --- |\n| [options] | [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions) | \n\n**Example**  \n```js\njsdoc.renderSync({ files: 'lib/*', destination: 'api-docs' })\n```\n<a name=\"module_jsdoc-api..JsdocOptions\"></a>\n\n### jsdoc-api~JsdocOptions\nThe jsdoc options, common for all operations.\n\n**Kind**: inner class of [<code>jsdoc-api</code>](#module_jsdoc-api)  \n\n* [~JsdocOptions](#module_jsdoc-api..JsdocOptions)\n    * [.files](#module_jsdoc-api..JsdocOptions+files) : <code>string</code> \\| <code>Array.&lt;string&gt;</code>\n    * [.source](#module_jsdoc-api..JsdocOptions+source) : <code>string</code>\n    * [.cache](#module_jsdoc-api..JsdocOptions+cache) : <code>boolean</code>\n    * [.access](#module_jsdoc-api..JsdocOptions+access) : <code>string</code>\n    * [.configure](#module_jsdoc-api..JsdocOptions+configure) : <code>string</code>\n    * [.destination](#module_jsdoc-api..JsdocOptions+destination) : <code>string</code>\n    * [.encoding](#module_jsdoc-api..JsdocOptions+encoding) : <code>string</code>\n    * [.private](#module_jsdoc-api..JsdocOptions+private) : <code>boolean</code>\n    * [.package](#module_jsdoc-api..JsdocOptions+package) : <code>string</code>\n    * [.pedantic](#module_jsdoc-api..JsdocOptions+pedantic) : <code>boolean</code>\n    * [.query](#module_jsdoc-api..JsdocOptions+query) : <code>string</code>\n    * [.recurse](#module_jsdoc-api..JsdocOptions+recurse) : <code>boolean</code>\n    * [.readme](#module_jsdoc-api..JsdocOptions+readme) : <code>string</code>\n    * [.template](#module_jsdoc-api..JsdocOptions+template) : <code>string</code>\n    * [.tutorials](#module_jsdoc-api..JsdocOptions+tutorials) : <code>string</code>\n\n<a name=\"module_jsdoc-api..JsdocOptions+files\"></a>\n\n#### options.files : <code>string</code> \\| <code>Array.&lt;string&gt;</code>\nOne or more filenames to process. Either this or `source` must be supplied.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+source\"></a>\n\n#### options.source : <code>string</code>\nA string containing source code to process. Either this or `files` must be supplied.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+cache\"></a>\n\n#### options.cache : <code>boolean</code>\nSet to `true` to cache the output - future invocations with the same input will return immediately.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+access\"></a>\n\n#### options.access : <code>string</code>\nOnly display symbols with the given access: \"public\", \"protected\", \"private\" or \"undefined\", or \"all\" for all access levels. Default: all except \"private\".\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+configure\"></a>\n\n#### options.configure : <code>string</code>\nThe path to the configuration file. Default: path/to/jsdoc/conf.json.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+destination\"></a>\n\n#### options.destination : <code>string</code>\nThe path to the output folder. Use \"console\" to dump data to the console. Default: ./out/.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+encoding\"></a>\n\n#### options.encoding : <code>string</code>\nAssume this encoding when reading all source files. Default: utf8.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+private\"></a>\n\n#### options.private : <code>boolean</code>\nDisplay symbols marked with the @private tag. Equivalent to \"--access all\". Default: false.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+package\"></a>\n\n#### options.package : <code>string</code>\nThe path to the project's package file. Default: path/to/sourcefiles/package.json\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+pedantic\"></a>\n\n#### options.pedantic : <code>boolean</code>\nTreat errors as fatal errors, and treat warnings as errors. Default: false.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+query\"></a>\n\n#### options.query : <code>string</code>\nA query string to parse and store in jsdoc.env.opts.query. Example: foo=bar&baz=true.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+recurse\"></a>\n\n#### options.recurse : <code>boolean</code>\nRecurse into subdirectories when scanning for source files and tutorials.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+readme\"></a>\n\n#### options.readme : <code>string</code>\nThe path to the project's README file. Default: path/to/sourcefiles/README.md.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+template\"></a>\n\n#### options.template : <code>string</code>\nThe path to the template to use. Default: path/to/jsdoc/templates/default.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n<a name=\"module_jsdoc-api..JsdocOptions+tutorials\"></a>\n\n#### options.tutorials : <code>string</code>\nDirectory in which JSDoc should search for tutorials.\n\n**Kind**: instance property of [<code>JsdocOptions</code>](#module_jsdoc-api..JsdocOptions)  \n\n* * *\n\n&copy; 2015-24 [Lloyd Brookes](https://github.com/75lb) \\<75pound@gmail.com\\>.\n\nTested by [test-runner](https://github.com/test-runner-js/test-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","publish_time":1451947511982,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1451947511982,"dist-tags":{"latest":"9.3.6","next":"9.0.0-1"}}