Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including npm-scripts-gui with all npm packages installed. Try it out:

var npmScriptsGui = require("npm-scripts-gui")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

npm-scripts-gui v0.0.2

GUI for npm scripts






npm scripts gui (NSG)

A GUI gooey interface for npm scripts.



Install

Install globally

npm i -g npm-scripts-gui

Instructions

While in a directory with a package.json file, simply run npm-script-gui or the shorter npm-sg. Any text output associated with the command will be printed to the command line where the gui was launched.

Configurations

NSG will automatically search for a .nsgrc in the same directory as the package.json. It should be in json format.

These are the available options:

  • name (choose different name than defined in package.json)
  • primary (the primary script buttons for scripts that will be ran more frequently)
  • exclude (scripts to NOT include in the GUI)
  • font-stack (the font in the GUI)

Example

{
    "name": "Qualtrics Node SFDC",
    "primary": ["build", "run-production", "run-sandbox"],
    "exclude": ["scripts-gui", "prebuild"],
    "font-stack": ["source sans pro", "helvetica neue"]
}

Any script not specfied in primary or excludes will show up a a normal button.

Future Configuration Plans:

  • ability to sort scripts (e.g. alphabetically)
  • define font-stack/font-weight for gui
  • different skins/themes (npm, node, light, dark, etc.)
  • create custom commands not in package.json (specific to gui)
  • run npm scripts in silent mode (good for linting tasks)

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free