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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@uoh/header

v0.0.1

Published

University of Haifa Header

Readme

@uoh/header

University of Haifa Header

In order to install this library properly you need the following configurations:

  1. Add @angular/material and the material icons font in the index.html file
  2. Include the library assets to the angular.json file to import the header logo
  3. Include the uoh-core and uoh-layout mixins from @uoh/theme
  4. Include the uoh-header theme in your styles.scss
  5. Import the HeaderModule
  6. Usage

Add material icons font

First, install angular material. Secondly, add the following tag to the head section of your index.html file:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Include the library assets

Add the following line to the assets array under both the build and the test sections in the angular.json file:

{ "glob": "**/*", "input": "./node_modules/@uoh/header/assets", "output": "./assets" }

For example:

 {
  "build": {
    "builder": "@angular-devkit/build-angular:browser",
    "options": {
      "outputPath": "dist/huheader-app",
      "index": "src/index.html",
      "main": "src/main.ts",
      "polyfills": "src/polyfills.ts",
      "tsConfig": "src/tsconfig.app.json",
      "assets": [
        "src/favicon.ico",
        "src/assets",
        { "glob": "**/*", "input": "./dist/uoh/header/assets", "output": "./assets" }
      ],
      "styles": ["src/styles.scss"],
      "scripts": []
    }
  }

Include uoh theme: core & layout

Install @uoh/theme.

Follow the instructions in the above link in order to include both the uoh-core and the uoh-layout theme mixins in your styles.scss

Include the library theme

Import the _header.theme.scss file and include the uoh-header mixin in your styles.scss:

@import '~@uoh/header/header.theme';

@include uoh-header($default-theme);

.dark-theme {
  @include uoh-header($dark-theme);
}

Import the HeaderModule

Add the HeaderModule to your NgModule imports:

import { HeaderModule } from '@uoh/header';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, HeaderModule],
  providers: [],
  bootstrap: [AppComponent]
})

Usage

Add the header library to the desired component html template. For example:

  <uoh-header subtitle="תת כותרת" [user]="user" (logOut)="onLogOut($event)"></uoh-header>

The header library accepts three input variables:

  • title: A string to be used as the main header title. The default value is אוניברסיטת חיפה.
  • subtitle: A string to be used as the header subtitle. The default value is undefined.
  • user: A string containing the name of the user. If set, a log out button will be displayed on the header, next to the user name. When the user presses the log out button an event will be fired. This event can be catched by binding a function to the logOut output.

For example, in your component ts file:

export class AppComponent {
  title = 'app';
  user: string;
  private authorize$: Subscription;

  constructor(private authService: AuthService) {}

  onLogIn(username: string, password: string): void {
    this.authorize$ = this.authService.authorize(username, password).subscribe(user => {
      this.user = `${user.firstName} ${user.lastName}`;
    });
  }

  onLogOut(loggedOut: boolean): void {
    this.user = undefined;
    console.log('log out', loggedOut);
  }
}