{"name":"jsdoc-api","version":"4.0.2","keywords":["jsdoc","api","programmatic","interface","javascript","documentation"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"jsdoc-api@4.0.2","homepage":"https://github.com/jsdoc2md/jsdoc-api#readme","bugs":{"url":"https://github.com/jsdoc2md/jsdoc-api/issues"},"dist":{"shasum":"fb7bbb0fb10d5276bdeedb86657ffd08693b0150","tarball":"http://registry-npm.ywwl.com/jsdoc-api/download/jsdoc-api-4.0.2.tgz","fileCount":51,"integrity":"sha512-oHTKUGqBrQwlYuxzenrj/K/MVEHT+wacL2JiG33Fe4i9NvZhk9rS0frwIpmqYczkUzpATEz1u2i7yTW6wM24Ew==","signatures":[{"sig":"MEUCIQCPtMB1evkgxNCtZvcWzOZoSnmdJ9O9TEWQRnQNO5KOuQIgU8Jv0eccYtKI0yNOkW2TPsKi+4I9csWlcQmno1IDVuA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1073016,"size":428885,"noattachment":false,"key":"/jsdoc-api/-/jsdoc-api-4.0.2.tgz"},"engines":{"node":">=4.0.0"},"gitHead":"af976fc7ca8ab6726421dc3ea6e35f20b93e97d9","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","test":"test-runner test/*.js","cover":"istanbul cover ./node_modules/.bin/test-runner test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"standard":{"ignore":["tmp","test/fixture"]},"repository":{"url":"git+https://github.com/jsdoc2md/jsdoc-api.git","type":"git"},"_npmVersion":"5.6.0","description":"A programmatic interface for jsdoc","directories":{},"_nodeVersion":"9.5.0","dependencies":{"jsdoc":"~3.5.5","file-set":"^1.1.1","temp-path":"^1.0.0","walk-back":"^3.0.0","array-back":"^2.0.0","cache-point":"^0.4.1","collect-all":"^1.0.3","fs-then-native":"^2.0.0","object-to-spawn-args":"^1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^2.6.2","coveralls":"^3.0.0","test-runner":"~0.5.0","collect-json":"^1.0.8","jsdoc-to-markdown":"^3.0.4"},"_npmOperationalInternal":{"tmp":"tmp/jsdoc-api_4.0.2_1518695698905_0.31461517164504427","host":"s3://npm-registry-packages"},"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":1518695700347,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1518695700347,"dist-tags":{"latest":"9.3.6","next":"9.0.0-1"}}