I am positive that I am not the only one who wanted to modify an existing Swagger Document to get rid of the APIs that you do not want others to see.
swagger-mod
is there for the rescue. Filter your Swagger Documents using HTTP methods, tags, urls, summaries and descriptions by using a single Node.js package with ease. You can download that here.
To use this package, first install it.
Then use the Promise Syntax to filter the swagger document. The filters can be chained like in the example below. You might want to have a look at the Regular Expressions since all filters except for the HTTP method filter accept regular expressions.
The library is Free and Open Source. Thus use it any way you like.