Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
documentation first cli tools.
For an example markdown file contents, and further usage docs,
read over test.js
.
const doccli = require('doccli');
const { readFileSync } = require('fs');
const md = readFileSync('path.md', {
encoding: 'utf8'
});
const argv = process.argv.slice(2)
const $ = doccli(argv, md);
// $ variable now holds a getter function for
// values along with common tools used when
// writing cli interfaces. see below.
The default return of doccli
is a getter function used
as such:
$(string | number)
If a string is provided, it will search for flags (and aliases) with the given string and return it's value. If a number is provided, it will instead return the value of the positional argument.
In addition to the argument fetching, a very minimal set of functions &
getters have been attached to the $
object:
$.all
- An object containing all the arguments given.$.pos
- An array containing all the positional arguments given.$.cout()
- Alias for console.log
, chainable.$.cerr()
- Alias for console.error
, chainable.$.out
- Alias for process.stdout
$.err
- Alias for process.stderr
$.assert
Exports Node's assert library to this variable. Useful for argument checking, argument lengths, etc.
$.exit()
- Alias for process.exit
FAQs
documentation first cli tools
The npm package doccl receives a total of 1 weekly downloads. As such, doccl popularity was classified as not popular.
We found that doccl 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.