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

ngx-icons

v0.3.0

Published

A collection of icon libraries to use in your angular apps

Downloads

317

Readme

ngx-icons

A collection of icons libraries to use in your Angular apps

Install

$ npm install --save  ngx-icons

Supported Libraries

The following icon libraries are supported

Use Font Awesome

Install

$ npm install --save  font-awesome

Import the module

//...
import { FontAwesomeModule } from 'ngx-icons';
@NgModule({
  //...
  imports: [
    //...
    FontAwesomeModule
  ],
  //...
})
export class AppModule { }

If you're using Angular CLI, add CSS to styles inside the .angular-cli.json

"styles": [
    "styles.css",
    "../node_modules/font-awesome/css/font-awesome.css"
],

Usage and Options

To use the component use selector: <fa></fa>.

Name | Type | Options | Optional --- | --- | --- | --- name | String | F-A Icons | No size | String | lg, 2x, 3x, 4x, 5x | Yes fixed | Boolean | true / false | Yes animation | String | spin / pulse | Yes rotate | Number / String | 90 / 180 / 270 / horizontal / vertical | Yes inverse | Boolean | true / false | Yes qoute | String | left / right | Yes pull | String | left / right | Yes

Use Themify Icons

Install

Download icons from Themify the add the ‘themify-icons.css’ file and ‘fonts’ to folder.

Import the module

//...
import { ThemifyIcons } from 'ngx-icons';
@NgModule({
  //...
  imports: [
    //...
    ThemifyIcons
  ],
  //...
})
export class AppModule { }

If you're using Angular CLI, add CSS to styles inside the .angular-cli.json

"styles": [
    "styles.css",
    "../path/to/themify-icons.css"
],

Usage and Options

To use the component use selector: <ti></ti>.

Name | Type | Options | Optional --- | --- | --- | --- name | String | Themnify Icons | No

Use Weather Icons

Install

$ npm install --save  git+https://github.com/erikflowers/weather-icons.git

Note that npm install --save weather-icons installs legacy version 1.5

Import the module

//...
import { WeatherIconsModule } from 'ngx-icons';
@NgModule({
  //...
  imports: [
    //...
    WeatherIcons
  ],
  //...
})
export class AppModule { }

If you're using Angular CLI, add CSS to styles inside the .angular-cli.json.

"styles": [
    "styles.css",
    "../node_modules/weather-icons/css/weather-icons.css",
    "../node_modules/weather-icons/css/weather-icons-wind.css"
],

Note that if you do not require the wind direction icons you can drop weather-icons-wind.css.

Usage and Options

To use the component use selector: <wi></wi>.

Name | Type | Options | Optional --- | --- | --- | --- name | String | W-I Icons | No fixed | Boolean | true / false | Yes rotate | Number | 90 / 180 / 270 | Yes flip | String | horizontal / vertical | Yes direction | String | towards / from | Yes, only for wind default towards degree | Number | 0-360 | Yes, only for wind default 0 cardinal | String | n - nnw | Yes, only for wind default n beaufort | Number | 0-11 | Yes, only for wind-beaufort default 0 time | Number | 1-12 | Yes, only for time default 1

Examples:

  • <wi name="wind" direction="from" degree="78"></wi>
  • <wi name="sleet" fixed="true"></wi>
  • <wi name="time" time="7"></wi>
  • <wi name="raindrop" flip="vertical"></wi>
  • <wi name="fire" rotate="90"></wi>