- Notifications
You must be signed in to change notification settings - Fork0
A Common Weakness Enumeration (CWE) Node.js SDK compliant with MITRE / CAPEC
License
lunasec-io/cwe-sdk-javascript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Common Weakness Enumeration (CWE) Node.js SDK compliant with MITRE / CAPEC
yarn add cwe-sdk
Require the CweManager class and use its methods
const{ CweManager}=require('cwe-sdk')
const{ CweManager}=require('cwe-sdk')constcweManager=newCweManager()constresult=cweManager.isChildOf({weaknessId:'117',parentId:'116'})console.log(result)// true
This CWE SDK has a build process that prepares the JSON data by downloading the latest version of the CWE archive (e.g.https://cwe.mitre.org/data/xml/cwec_v4.1.xml.zip) and then crunches it to create the following data snapshots:
- A mirror JSON object, available at
./raw/cwe-archive.json - A JSON dictionary to easily access CWEs by their ID, available at
./raw/cwe-dictionary.json - A JSON array for the relationship hierarchy between CWEs, available at
./raw/cwe-hierarchy.json
This work is made possible thanks to scripts in./build/
Please consultCONTRIBUTING for guidelines on contributing to this project.
cwe-sdk ©Liran Tal, Released under theApache-2.0 License.
About
A Common Weakness Enumeration (CWE) Node.js SDK compliant with MITRE / CAPEC
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- TypeScript94.4%
- JavaScript5.6%