{"name":"jsdoc-api","version":"6.0.0","keywords":["jsdoc","api","programmatic","interface","javascript","documentation"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"jsdoc-api@6.0.0","homepage":"https://github.com/jsdoc2md/jsdoc-api#readme","bugs":{"url":"https://github.com/jsdoc2md/jsdoc-api/issues"},"dist":{"shasum":"fbba403ef59de0480b7e5aadd563a7bb715b0187","tarball":"http://registry-npm.ywwl.com/jsdoc-api/download/jsdoc-api-6.0.0.tgz","fileCount":9,"integrity":"sha512-zvfB63nAc9e+Rv2kKmJfE6tmo4x8KFho5vKr6VfYTlCCgqtrfPv0McCdqT4betUT9rWtw0zGkNUVkVqeQipY6Q==","signatures":[{"sig":"MEYCIQCG5R6NEO+9tK5pK5DH43r/CO327TpcwpmwbagoMJtrdwIhAKkJUs2t2mp08pLMIs0RAi/uQCyPDvI5IRrR2sTzQ8Z1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe035cCRA9TVsSAnZWagAA6psP+gJU2yXww4FG3wHoSiIK\no7qdafRpEHKPND9o3pvUDGRGSP4T5SEEZDLcjk1igov0HB9pMjQJtWX2ze3i\n6GYtZlzg4AjxtMMJkEtna5MVbLUYBNi4ZVs8yaUvRaKcpcuVP85oO93IGeab\nuWQ8SVrdtA37192jkzNTd6UGH/gpu/71yTiBmbVivLqmp2P/SupcJU6VzzVo\nXVyr2E9N9S3SJ3nfl451wScCkKM/pz7NfXhnsdJFqyN9sDXTwBr8to3OnK7B\nzNv+r6999Isn1rpK2SKkSDWj+Vc8zefPSLa4VfAAe006p2aDmKCW0P8QJ8sR\nOU/m6EzfzF4R7qiiQUGI/3mbMW6rYvlLBiBO3MlX/WKUoQvCAKNMYaBdaaJL\nj7S+hnZVuspoxIKzGMktP+A0LmqUycSVj7m9XTwqsncM9H94m0quDkFD+xDB\nf3ZYbBBCys9pWQxXYra6PtGMJ3GZLW93oGe5OqpmacVR52BnuaTNfNvrmIsk\ncCsqQks2c9483iCVXFy8CxmJuDD5n2g8Jf2ZxorvmHBxQdX7kKidoP/5CRlw\ndZo+/vabjs/Kh9jj86aOA7YP5pJKkOAY8/wg9Jvs6ScV+Sm5uxz50kzoao8D\nOeaCq8b8Z/jdYa1+4ja6m9iZ5lNgdw7GV9Df4GRQpBH1UB75VhXf/+PDblKn\nK3LA\r\n=gstY\r\n-----END PGP SIGNATURE-----\r\n","size":6482,"noattachment":false,"key":"/jsdoc-api/-/jsdoc-api-6.0.0.tgz"},"engines":{"node":">=10"},"gitHead":"287b51c0ba520db09d804168cb5c72ae214cf4b7","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs index.js lib/*.js > README.md; echo","test":"test-runner --max-file-concurrency 1 test/*.js","cover":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"_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":"6.14.5","description":"A programmatic interface for jsdoc","directories":{},"_nodeVersion":"14.3.0","dependencies":{"jsdoc":"^3.6.4","file-set":"^4.0.1","temp-path":"^1.0.0","walk-back":"^4.0.0","array-back":"^4.0.1","cache-point":"^2.0.0","collect-all":"^1.0.3","fs-then-native":"^2.0.0","object-to-spawn-args":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.1","rimraf":"^3.0.2","coveralls":"^3.1.0","test-runner":"^0.8.13","collect-json":"^1.0.8","jsdoc-to-markdown":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/jsdoc-api_6.0.0_1590918748194_0.8448870137424955","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":1590918748316,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1590918748316,"dist-tags":{"latest":"9.3.6","next":"9.0.0-1"}}