Socket
Socket
Sign inDemoInstall

@neutralinojs/neu

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neutralinojs/neu

neu cli for Neutralinojs


Version published
Weekly downloads
461
decreased by-20.38%
Maintainers
1
Weekly downloads
 
Created
Source

neutralinojs-cli

npm npm

neu cli for Neutralinojs

  $ npm i -g @neutralinojs/neu

Synopsis

  • neu create <binaryName>
  • neu build [--release]
  • neu run [--mode=<mode> --arch=<arch> --disable-auto-reload]
  • neu update
  • neu plugins [packageName] [--remove, --add]
  • neu version

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 explained 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 registry, 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

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