New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nest-console

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nest-console

The nest console module eases the creation of beautiful and testable command line interfaces for applications base on nestjs framework.

  • 6.10.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

nest-console

The nest-console module eases the creation of beautiful and testable command line interfaces for applications base on nestjs framework.

installation

yarn add nest-console

or

npm install nest-console --save

write a console class

import { Console, Argument, Option, Logger, Command } from 'nest-console' 

@Console('hello')
export class HelloCommand {
    @Command('test')
    test(
        @Argument('arg1', 'The first argument') arg1: string,
        @Argument('arg2', 'The second argument') arg2: string,
        @Option('opt1', 'The first option') opt1: string,
        logger: Logger
    ) {
        logger.info({
            arg1,
            arg2,
            opt1
        })
    }
}

Keywords

FAQs

Package last updated on 24 Mar 2021

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