Represents a CWE category resource, providing access to category details.
Implements PromiseLike<CweCategory> so it can be awaited directly.
PromiseLike<CweCategory>
// Await directly to get full category dataconst category = await cwe.category(189);// Or call .get() explicitlyconst category = await cwe.category(189).get(); Copy
// Await directly to get full category dataconst category = await cwe.category(189);// Or call .get() explicitlyconst category = await cwe.category(189).get();
Fetches the full category entry.
GET /cwe/category/{id}
The category object
Represents a CWE category resource, providing access to category details.
Implements
PromiseLike<CweCategory>so it can be awaited directly.Example