security.txt Node Parser
parsing security.txt documents, zero dependencies, based on draft-foudil-securitytxt-09
Installing
npm install security-txt-node-parser
Example
const parseSecurityTxt = default const securityTxt = await console // https://hackerone.com/ed
Options
These options are avaliable
property | default | description |
---|---|---|
strict | false | if strict is true, an error will be thrown if the document is invalid |
parseUrls | false | if parseUrls is true, any urls will be wrapped in the URL object |
parseDates | false | if parseDates is true, any dates will be wrapped in the Date object |
Licence
This project is licensed under the MIT License - see the LICENSE file for details