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 hyper2-border with all npm packages installed. Try it out:

var hyper2Border = require("hyper2-border")

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

hyper2-border v1.0.0

Add a gradient border to Hyper2 terminal

hyper-border npm version Build Status

Add a gradient border to the Hyper2 terminal

hyper-border

Installation

Add hyper-border to plugins in your ~/.hyper.js configuration

module.exports = {
  ...
  plugins: ['hyper-border']
  ...
}

then restart the Hyper app or go to the menu 'Plugins / Update All Now'

Configuration

The following settings can be configured by adding a hyperBorder section in your .hyper.js config section:

SettingTypeDescription
borderWidthstringCSS string for how thick the borders should be
borderColorsstring, string[]The color(s) for the border
EXAMPLE: Set Border Colors And Width
module.exports = {
  config: {
    ...
      hyperBorder: {
        borderColors: ['#fc1da7', '#fba506'],
        borderWidth: '8px'
      }
    ...
  }
}
EXAMPLE: Set Border Colors To Random Colors

In addition, you can set any color value to 'random' (string value):

module.exports = {
  config: {
    ...
      hyperBorder: {
        borderColors: ['random','random'],
        borderWidth: '8px'
      }
    ...
  }
}

Then every newly opened Hyper terminal window will have a different colored border.

Get Hyper

Full credit to @Webmatze for original work on hyperborder.

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