npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hyperborder

v2.0.2

Published

Extension to add border effects to the Hyper terminal

Downloads

563

Readme

hyperborder - extension for Hyper

adds a gradient border to the Hyper terminal

Installation

add it to plugins in your ~/.hyper.js configuration

module.exports = {
  ...
  plugins: ['hyperborder']
  ...
}

then just restart 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:

| Setting | Type | Description | |----------------------|----------------------|--------------------------------------------------------| | borderWidth | string | CSS string for how thick the borders should be | | borderRadiusInner | string | CSS string for round inner corners | | borderRadiusOuter | string | CSS string for round outer corners | | borderColors | string, string[] | The color(s) for the border | | adminBorderColors | string, string[] | The color(s) for the border for an admin/elevated window. This follows the precedence of adminBorderColors > borderColors > defaultColors | | blurredColors | string, string[] | The color(s) of the borders when the window isn't active | | blurredAdminColors | string, string[] | The color(s) of the borders when the admin/elevated window isn't active. This follows the precedence of blurredAdminColors > blurredColors > adminBorderColors > borderColors > defaultColors |

A note on admin/root colors

The use of Hyper under the admin/root account is mainly intended for Windows' users (where it is common to run an application in elevated mode), since on Linux/OSX you would typically utilize the sudo <command> command. Technically you can run Hyper as root on non-Windows machines (there are issues running Hyper as root under a Wayland desktop), though in this case, the root user will actually have their own copy of .hyper.js configuration.

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.

EXAMPLE: Animate Border Colors

You like some animations? Then try this:

module.exports = {
  config: {
    ...
    hyperBorder: {
      animate: true,
      ...
    }
    ...
  }
}

To change the speed of animation, specify an object with a duration property in milliseconds:

module.exports = {
  config: {
    ...
    hyperBorder: {
      animate: {
        duration: '1000',  // default is 18000
      },
      ...
    }
    ...
  }
}

EXAMPLE: Angled Gradients

Because we use CSS3's linear-gradient, we're able to specify angles at which to create the radius. Set your own angle like this:

module.exports = {
  config: {
    ...
    hyperBorder: {
      borderAngle: '180deg',
      ...
    }
    ...
  }
}

Download Hyper here

https://hyper.is/