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.
cowmand
Advanced tools
Readme
This lib get beginning of express to create a cli. It's a simple way to create a cli.
This is a Node.js module available through the npm registry.
Use npm:
$ npm install cowmand
Use yarn:
$ yarn add cowmand
Using middleware in global, but with rules to notIn ["login"]
.
import Cowmand from 'cowmand';
import { GuardLogin } from './guardLogin';
import { Login } from './login';
const program = Cowmand();
program.use({ notIn: ['login'] }, GuardLogin);
program.command(['login'], Login);
program.command(['me'], (context, terminal) => {
terminal.log(`Hello, ${context.session.user?.name}!`).end();
});
program.start();
Using middleware before command handle:
import Cowmand from 'cowmand';
import { GuardLogin } from './guardLogin';
import { Login } from './login';
const program = Cowmand();
program.command(['login'], Login);
program.command(['me'], GuardLogin, (context, terminal) => {
terminal.log(`Hello, ${context.session.user?.name}!`).end();
});
program.start();
Terminal Docs
This project is under the MIT license. See the LICENSE file for more details.
FAQs
Fast helper to create a cli
The npm package cowmand receives a total of 1 weekly downloads. As such, cowmand popularity was classified as not popular.
We found that cowmand demonstrated a healthy version release cadence and project activity because the last version was released less than 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.