New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

clivage

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clivage

Command-line helper.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

clivage

Build Status Coverage Status Dependency Status

Command-line helper.

Install

With npm:

$ npm install --save clivage joi

With yarn:

$ yarn add clivage joi

Note that joi is a peer dependency.

Now with update-notifier

The module now uses update-notifier to let the user know about updates to this program.

Users have the ability to opt-out of the update notifier by changing the optOut property to true in ~/.config/configstore/update-notifier-[YOUR-MODULE-NAME].json. The path is available in notifier.config.path.

Users can also opt-out by setting the environment variable NO_UPDATE_NOTIFIER with any value or by using the --no-update-notifier flag on a per run basis.

Usage

const clivage = require('clivage')


const schema = joi.object({
  port: joi.number().integer(),
  host: joi.string().optional(),
  user: joi.string().optional(),
  pw: joi.string().optional()
})
  .with('pw', 'user')
  .with('user', 'pw')

const cli = clivage(schema)
cli.flags

//=> { port: 1234, host: 'http://localhost:5984' }

API

clivage(options)

options

schema

Type: object (joi)

Lorem ipsum.

alias

Type: array

argv

Type: object

Lorem ipsum.

help

Type: string

Lorem ipsum.

prefix

Type: string

Lorem ipsum.

envPath

Type: string

Lorem ipsum.

License

AGPL-v3 © 2017 Robin Millette

Keywords

cli

FAQs

Package last updated on 18 Oct 2017

Did you know?

Socket

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.

Install

Related posts