Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@quase/cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quase/cli

A simple cli helper.

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

About

A simple cli helper.

Includes meow and update-notifier with some extensions:

  • We change the update message if Yarn is detected.
  • Passing a defaultConfigFile value automates the requiring of a config file. The user will be able to override the default using --config=another-file.js.

Usage example

bin/index.js

#!/usr/bin/env node

require( "@quase/cli" ).default(
  ( { input, flags, pkg, help, config /* the config object, if "defaultConfigFile" was used */ } ) => {

  },
  {
    defaultConfigFile: "config.js"
  }, // Meow options + optional defaultConfigFile
  {
    options: {}, // UpdateNotifier options
    notify: {} // .notify() options
  }, // false to disable notification
);

package.json

{
  "bin": {
    "my-name": "bin/index.js"
  },
}

See https://github.com/sindresorhus/meow for details.

See https://github.com/yeoman/update-notifier for details.

Copy-paste example

bin/index.js

#!/usr/bin/env node
/* eslint-disable no-shebang */

require( "@quase/cli" ).default( ( { flags, pkg, config } ) => {
  require( "../dist" ).default( Object.assign( {}, config || pkg[ "my-name" ], flags ) );
}, {
  defaultConfigFile: "my-name-config.js"
} );

FAQs

Package last updated on 18 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc