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

@amfrontender/ngx-multi-keywords-highlighter

v2.2.0

Published

![MIT license](https://img.shields.io/badge/License-MIT-blue.svg) ![npm (scoped)](https://img.shields.io/npm/v/%40amfrontender/ngx-multi-keywords-highlighter) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/dylannnn/ngx-mult

Downloads

41

Readme

Ngx Multi Keywords Highlighter Workspace

MIT license npm (scoped) GitHub code size in bytes Commitizen friendly Publish NGX Multi Keywords Highlighter

Project Overview

Bored with the browser build-in search that hightlight the keyword? Missing a feature that highlight multiple keywords? This is the Ngx Multi Keywords Highlighter! This library provides a simple and intuitive way to highlight multiple keywords with different colors in your Angular applications. This library is designed to be easy to integrate into your existing projects, allowing you to focus on building amazing features without worrying about the underlying implementation details.

NGX Multi Keywords Highlighter

Features

  • Multi-keyword highlighting: Highlight multiple keywords in your text content using a variety of colors.
  • Customizable colors: Choose from a range of pre-defined colors or define your own custom colors to match your application's branding.
  • Easy integration: Simply install and import the library into your Angular project, and you're ready to start highlighting!
  • Flexibility: Supports customization for multiple keywords highlight colors, thems.

Getting Started

To get started with this project, follow these steps:

  • Install the library using npm or yarn: npm install @amfrontender/ngx-multi-keywords-highlighter
  • Import the library and config for your Angular project:
  1. Add "node_modules/@amfrontender/ngx-multi-keywords-highlighter/themes/index.scss" or "node_modules/@amfrontender/ngx-multi-keywords-highlighter/themes/themes.scss" to your angular.json or project.json if you use NX to the build options of styles.
  • Generate Material 3 theme: nx generate @angular/material:m3-theme
  1. Import the NgxMultiKeywordsHighlighterModule to your app.module.ts

    import { LABEL_POSITION, MATERIAL_COLOR, NgxMultiKeywordsHighlighterModule } from '@amfrontender/ngx-multi-keywords-highlighter';
  2. Add NgxMultiKeywordsHighlighterModule config to the imports

    @NgModule({
      declarations: [...],
      providers: [
        provideAnimations(),
        importProvidersFrom(
          NgxMultiKeywordsHighlighterModule.forRoot({
            themeColor: MATERIAL_COLOR.PRIMARY,
            enableToggleLabel: true,
            toggleLabelPosition: LABEL_POSITION.BEFORE,
            enableHighlighterTooltip: 'On/Off',
            linkToCopyright: true,
            minWidth: 320,
            appRoot: storyRoot,
          }),
        ),
      ],
      bootstrap: [...],
    })
    export class AppModule {}
  3. Add the lib tag to your component html

    <mkh-multi-keywords-highlighter class="custom-lib"></mkh-multi-keywords-highlighter>

For more advanced usages, please check the storybook for the library or the demo app

Development/Contribution

TBD

Semantic Commits

| Type | Notes | |----------|---------------------------------------------------------------------------------------------------------| | build | Changes that affect the build system or external dependencies | | chore | Changes to the build process, release or auxiliary tools and libraries such as documentation generation | | ci | Changes to our CI configuration files and scripts | | docs | Documentation only changes | | feat | A new feature | | fix | A bug fix | | perf | A code change that improves performance | | refactor | A refactoring | | revert | A revert commit | | style | UI/UX CHANGES | | test | Adding missing tests |

License

The Library is released under the MIT License. See LICENSE for more information.

Contact

If you have any questions, need help with integration, or want to discuss new features, please don't hesitate to open an Issue from github repository.