
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
discordjs-docs-parser
Advanced tools

Documentation parser for DiscordJS projects. Read documentation JSON from GitHub and outputs easily readable format for displaying in your environment of choice
Note: This is a derivative work based on https://github.com/TeeSeal/discord.js-docs. Many thanks go out to TeeSeal for the original work.
discordjs-docs-parser is a parser for DiscordJS documentation. It parses the JSON and outputs all the data in a readable Class format for consumptions. A use case for this library is providing a doc search command in your Discord bot project. It is also a good way to get a quick overview of the documentation. The prime motivators for this library are the Discord Utils Bot and Sapphire Application Commands projects.
Install with your package manager of choice:
npm install discordjs-docs-parser
yarn add discordjs-docs-parser
| Click here to go to full documentation |
|---|
discordjs-docs-parser is written to be a drop-in replacement for TeeSeal's library. This means that you can simply
replace the require/import and most of your code should continue to work exactly as it is written right now. That
said, there are a few things that should be noted that are gone:
The doc.resolveEmbed(query) method is gone. This is a design choice because I am of the opinion that this library
should not be doing any opinionated markdown formatting or embed structuring. Instead, it should be left up to the
consumer to do this.
All the formatted* methods are gone, except for formattedName and formattedDescription. Similar to the point
above, this is because this library should not make any assumptions about how the documentation should be formatted.
Instead, the consumer should be responsible for formatting the documentation.
The first step is to fetch the documentation. This is done by calling the fetch method. After fetching the
documentation, this library stores the result in an in-memory cache (using a Map) for later use.
Please refer to Doc#fetch examples and more information.
After fetching the documentation from GitHub, and having it stored in the internal cache, you can get a specific element either by its exact ID or a nested property path.
Please refer to Doc#get examples and more information.
If instead of getting the absolute path of a specific element you instead want to perform a fuzzy search for elements
you can use doc.search. This will return the top 10 results for the provided query using the Jaro Winkler Distance
algorithm.
Please refer to Doc#search examples and more information.
My projects are and always will be open source, even if I don't get donations. That being said, I know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!
I accept donations through Ko-fi, Paypal, Patreon, GitHub Sponsorships, and various cryptocurrencies. You can use the buttons below to donate through your method of choice.
| Donate With | Address |
|---|---|
| Ko-fi | Click Here |
| Patreon | Click Here |
| PayPal | Click Here |
| GitHub Sponsors | Click Here |
| Bitcoin | 1E643TNif2MTh75rugepmXuq35Tck4TnE5 |
| Ethereum | 0xF653F666903cd8739030D2721bF01095896F5D6E |
| LiteCoin | LZHvBkaJqKJRa8N7Dyu41Jd1PDBAofCik6 |
Please make sure to read the Contributing Guide before making a pull request.
Thank you to all the people who already contributed to GraphQL-Pokemon!
FAQs
Documentation parser for DiscordJS projects
The npm package discordjs-docs-parser receives a total of 39 weekly downloads. As such, discordjs-docs-parser popularity was classified as not popular.
We found that discordjs-docs-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.