Socket
Socket
Sign inDemoInstall

@neutralinojs/neu

Package Overview
Dependencies
178
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @neutralinojs/neu

neu cli for Neutralinojs


Version published
Weekly downloads
351
increased by2.93%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

neutralinojs-cli

npm npm

neu cli for Neutralinojs

  $ npm i -g @neutralinojs/neu

Synopsis

  • neu create <binaryName>
  • neu build [--release]
  • neu run
  • neu listen
  • neu update
  • neu plugins [packageName] [--remove, --add]

Plugins

Neutralinojs app developers are able to write custom neu-cli plugins to add their own commands to the main CLI. Plugins can be developed as per below.

Implementing the plugin

neu-cli will register plugins using index.js as an interface.

// index.js
module.exports = {
  command: 'commandname <action1>',
  register: (command, modules) => {
    command.option('--option1 --option2')
     .action((action1, command) => {
        //your logic goes here..
     });
  }
}

command is the cli command string with actions. register will be called when plugin is being registered with neu-cli. Thus, it has the command object and standard modules object as parameters. Please check commander for more information about commands and objects.

Publishing the plugin

Once you publish your neu-cli plugin to npm directory anyone will be able to use it using,

 $ neu plugins --add <packageName>

and it can be removed using,

 $ neu plugins --remove <packageName>

License

MIT

Contributors

Made with contributors-img.

FAQs

Last updated on 06 Jun 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc