
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
graphdoc-plugin-erase
Advanced tools
GraphQL schema HTML documentation generation, erasing unwanted types using graphdoc
1 . Add dependencies:
package.json:
"devDependencies": {
"@2fd/graphdoc": "2.4.0",
"graphdoc-plugin-erase": "1.1.0",
2 . If default options are not suitable, then Configure graphdoc-plugin-erase:
package.json:
{
"graphdoc-plugin-erase": {
"eraseByNameRegex": "\\w*No",
"eraseByDescriptionRegex": "@RemoveFromDocumentation",
"eraseByKindRegex": "(?:UNION|SCALAR)"
}
}
3 Use graphdoc-plugin-erase:
package.json:
"scripts": {
"doc": "graphdoc -p graphdoc/../../graphdoc-plugin-erase -p graphdoc/plugins/default -s ./schema.graphql -o ./build/documentation"
}
or if using graphdoc-plugin-flexible instead of graphdoc default plugins
"scripts": {
"doc": "graphdoc -p graphdoc/../../graphdoc-plugin-erase -p graphdoc/../../graphdoc-plugin-flexible -s ./schema.graphql -o ./build/documentation"
}
graphdoc/../../this is required to get external plugins working ingraphdoc.
graphdoc-plugin-erase provides a way to use graphdoc and remove some types that are not required in the documentation, e.g. __Directive, __EnumValue, __DirectiveLocation, etc.
package.json:
(default values)
{
"graphdoc-plugin-erase": {
"eraseByNameRegex": "^__",
"eraseByDescriptionRegex": "^$",
"eraseByKindRegex": "^$"
}
}
eraseByNameRegex: Regular Expression to be used to remove types, based on name.eraseByDescriptionRegex: Regular Expression to be used to remove types, based on description.eraseByKindRegex: Regular Expression to be used to remove types, based on kind.
graphdoc-plugin-eraseplugin should be add before the plugins we want to have filtered types.
graphdoc can work with older versions of GraphQL (description syntax: #), and new versions (description syntax: """), How to configure graphdoc.
CHANGELOG: contains the information about changes in each version, chronologically ordered (Keep a Changelog).
Don't forget:
At life:
At work:
FAQs
GraphQL schema HTML documentation generation, erasing unwanted types using graphdoc
The npm package graphdoc-plugin-erase receives a total of 28 weekly downloads. As such, graphdoc-plugin-erase popularity was classified as not popular.
We found that graphdoc-plugin-erase 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.