Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Easily show the usage of your CLI tool from a Markdown string
or file. You can just plug cli-usage
in without thinking
about paramters, or you can handle that your self using the
.get
API end-point.
npm install cli-usage
Most basic usage, just plug in:
var usage = require('cli-usage');
usage();
//=> If help-flag is passed, print usage
//=> and exit with code 0.
This will listen for -h
, -help
or --help
passed
into your CLI and try to locate a usage.md
file from
the directory of the file. If help
is passed and the
usage.md
file found, the usage will be printed and
the application will exit with code 0
.
You can also pass in a filename or a string.
var usage = require('cli-usage');
usage('./some/path/to/usage.md');
or
var usage = require('cli-usage');
usage('# Simple usage');
Instead of cli-usage
doing all the work, you can
also just retrieve the compiled usage text and handle
it your self.
var usage = require('cli-usage');
console.log(usage.get('# some custom markdown from string'));
console.log(usage.get('./usage.md'));
FAQs
Easily show CLI usage from a markdown source file
The npm package cli-usage receives a total of 32,116 weekly downloads. As such, cli-usage popularity was classified as popular.
We found that cli-usage 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
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.