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

@rinminase/ng-fortawesome

v6.1.2

Published

Reduce your project dependencies when using @fortawesome/angular-fortawesome.

Downloads

95

Readme

Introduction

Reduce your project dependencies when using @fortawesome/angular-fontawesome.

This library removes svg-core as its peer dependency. This also includes imports for brand, regular and solid icons.

Versions used

| Dependencies | Version | Import Shorthand | | ------------------------- | -------- | ------------------ | | angular-fontawesome | v0.9.0 | | | fontawesome-svg-core | v1.2.35 | | | free-brands-svg-icons | v5.15.3 | fab | | free-regular-svg-icons | v5.15.3 | fa | | free-solid-svg-icons | v5.15.3 | fas |

Usage & Demo

Installation

  1. You can install ng-fortawesome using npm

    npm install @rinminase/ng-fortawesome
  2. Add it on your module, like so

    import { FontAwesomeModule } from "@rinminase/ng-fortawesome";
    
    @NgModule({
      imports: [
        ...,
        FontAwesomeModule,
      ]
    })
  3. Declare it in your component, like so

    import { fasPlus, faEdit, fabGithub } from "@rinminase/ng-fortawesome";
    
    export class SomeComponent implements OnInit {
      fasPlus = fasPlus;
      faEdit = faEdit;
      fabGithub = fabGithub;
    
      onInit() {
          ...
      }
    }
  4. Use it on your template, like so

    <fa-icon [icon]="fasPlus"></fa-icon>
    <fa-icon [icon]="faEdit"></fa-icon>
    <fa-icon [icon]="fabGithub"></fa-icon>

FAQ

Why re-create this library when there is already an existing one?

  • The existing library doesn't seem to remove svg-core as its peer dependency, but needs it for both brands-svg, regular-svg and solid-svg. I seem to see the need to remove the additional library installed for your project and have this library install it instead. This library aims to reduce the number of dependencies listed in your package file.

    Instead of:

    npm install @fortawesome/angular-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-brands-svg-icons @fortawesome/free-regular-svg-icons @fortawesome/free-solid-svg-icons

    I wanted to do it this way:

    npm install @rinminase/ng-fortawesome

    Which only adds one dependency in your project depencies instead of five.

Will this library be updated when any of its dependencies updates?

  • Yes. This is updated whenever angular-fontawesome, brands-svg, regular-svg, solid-svg or svg-core updates.

Built with