
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@webdoc/model
Advanced tools
© 2020-2022 webdoc Labs
This package is the API for editing and querying in-memory documentation tree models. @webdoc/types defines the node structure.
This package is usually a dependency of templates and other webdoc packages.
npm install @webdoc/model
import * as model from '@webdoc/model';
const entity = model.createDoc(
"DocumentedEntity",
"ClassDoc",
{
"description": "This is a programmatically created document!",
}
);
const entityNs = model.doc("Documentation.Entities", documentTree);
model.addChildDoc(entity, entityNs);
@webdoc/model exports helper functions for creating and searching documents and mounting them into document trees.
model.createFunctionType(
[model.createSimpleKeywordType("Promise")], // params
model.createSimpleKeywordType("boolean"), // returns
);
@webdoc/model exports helper functions for creating and joining data types. The DataType type is defined in @webdoc/types.
// Gets all the methods named "generic" in DocumentedEntity. Each signature of the method has a separate document. The
// # operator excludes any static "generic"-named methods.
const genericSignatures = model.query("Documentation.Entities.DocumentedEntity#generic", documentTree);
@webdoc/model exports a query engine for its document path language.
const isInstantiable = model.isClass(doc) || model.isInterface(doc);
@webdoc/model exports helper functions for checking the types of document passed.
FAQs
Doclet API for JavaScript
The npm package @webdoc/model receives a total of 9,744 weekly downloads. As such, @webdoc/model popularity was classified as popular.
We found that @webdoc/model 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.