{"name":"jsdoc-api","version":"7.1.0","keywords":["jsdoc","api","programmatic","interface","javascript","documentation"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"jsdoc-api@7.1.0","homepage":"https://github.com/jsdoc2md/jsdoc-api#readme","bugs":{"url":"https://github.com/jsdoc2md/jsdoc-api/issues"},"dist":{"shasum":"b7844fccc45b8eca97faad181195f0b9aff7eb4f","tarball":"http://registry-npm.ywwl.com/jsdoc-api/download/jsdoc-api-7.1.0.tgz","fileCount":9,"integrity":"sha512-yjIiZa6LFOgd0dyFW/R+3unnVUhhbU1CeBhisgjBPRHkar83rkgDtTMRdgQotSvt+pGlmknZqfwR5AQuMh9/6w==","signatures":[{"sig":"MEYCIQDFDFkucaizDPlwugOzEZxafjxWNO8d/aGjTA1BXG3w6AIhAMQA6l19u74D1AqHY7GBgkBnCCCxKfsrMkx4CUIAGQHz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2wrjCRA9TVsSAnZWagAAZLoP/2pN3pf3+Cq9hb7jplqy\n8w85oU4IYGSzjxlu6zzijww5wJNVzbVyIqt9oszQhp2aY0mLQ58R1KlGa86i\nV2C3gKjQy3tze6cTQcM1XAV8728RgJxPSMyWo5ECZrWDpcdSgKjThAXxTBe9\nnhxka2GVy8KRF4Kat4b6AXGEsZMfh20Rh0q9TJmpMuIokqkIdwTWhAAydxOg\nhmV3/GQ+rmoQmCm5AKhqe4CeZqNoqQAKFI66StZCQqgy8EsIjIHV1flNn7gk\n7lUiagaXzWgDdmAqXC7M7y0ToACZmZ4KEOHQhj5hd09sLoZDfNfmWFuBHpFz\nctSItg/er7nVPYju2wTQcEH/EHZ1VsPBpvGzM+vVW0NRXaylPra7zMWZ6deL\n41sMvm3O0ng5tvpo1JH5Vf7FhXHZjLChsL0Qs7fjKbpS8/P+w+7dBX9JhrcO\nTvSyCHJsctoz5isLM5o/6HE3P/p9SxJ8vMkeYEQLSZs/vjrSZ5FWZ1rbb+S0\nBRiG7RD3rtHFEg/83LCeA41JyL/efDsdKZ/PF87GR4BZU6MEGI29kypZl/J1\ncv7KWtW4v/gUmVMuglXXv0/XDFz18UkXHWnF9ogqZBgdRTLFIoSkRbghFJ1P\n5xOQt2VNIynP65AUTlNbkRYQ7L6Lv8/+E6prI679D3scWpze3hPYePH+slVz\nrkNK\r\n=cCmW\r\n-----END PGP SIGNATURE-----\r\n","size":6380,"noattachment":false,"key":"/jsdoc-api/-/jsdoc-api-7.1.0.tgz"},"engines":{"node":">=12.17"},"gitHead":"0d07de14db3b96d9b415fe9794291d8b99448edd","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs index.js lib/*.js > README.md; echo","test":"test-runner --max-file-concurrency 1 test/*.js","test:ci":"npm test"},"_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":"8.0.0","description":"A programmatic interface for jsdoc","directories":{},"_nodeVersion":"16.11.1","dependencies":{"jsdoc":"^3.6.7","file-set":"^4.0.2","temp-path":"^1.0.0","walk-back":"^5.1.0","array-back":"^6.2.0","cache-point":"^2.0.0","collect-all":"^1.0.4","fs-then-native":"^2.0.0","object-to-spawn-args":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","coveralls":"^3.1.1","test-runner":"^0.10.0","collect-json":"^1.0.9","jsdoc-to-markdown":"^7.0.1"},"_npmOperationalInternal":{"tmp":"tmp/jsdoc-api_7.1.0_1634156310428_0.5337671867219627","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":1634156310559,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1634156310559,"dist-tags":{"latest":"9.3.6","next":"9.0.0-1"}}