![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
doccl
Advanced tools
Readme
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 0 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.