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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ngx-spellchecker-ivy

v1.0.6

Published

An Angular Ivy-compatible spellchecker library, based on ngx-spellchecker but updated for compatibilty.

Readme

ngx-spellchecker-ivy

npm version

ngx-spellchecker-ivy is a simple Angular spellchecker library compatible with Angular Ivy and Angular 16+.
It is a fork and continuation of the ngx-spellchecker library, rewritten to support Angular's Ivy rendering engine and future Angular versions.


Why ngx-spellchecker-ivy?

The original ngx-spellchecker library is not maintained anymore and does not support Angular Ivy. This causes incompatibilities starting from Angular 16, as Ivy is now the default and only supported rendering engine.
ngx-spellchecker-ivy fixes this by supporting Ivy and providing the same spellchecking functionality with improved compatibility.


Features

  • Compatible with Angular Ivy
  • Spellcheck words against a dictionary
  • Suggest similar words using Levenshtein distance
  • Regex support for ignoring certain patterns
  • Dictionary normalization utilities
  • Lightweight and easy to integrate

Installation

npm install ngx-spellchecker-ivy

Usage

Import and Use SpellCheckerService

import { Component, Inject } from '@angular/core';
import { SpellCheckerService, Dictionary, SpellCheckResult } from 'ngx-spellchecker-ivy';

@Component({
  selector: 'app-root',
  imports: [],
  templateUrl: './app.html',
  styleUrl: './app.scss',
})
export class App {
  private spellCheckerService = Inject(SpellCheckerService);
  private dictionary!: Dictionary;

  public constructor() {
    this.dictionary = this.spellCheckerService('example\nlist\nof\nwords\nfor\nspellchecking\n');
    
    // Example usage of spellCheck 
    this.dictionary.spellCheck('example'); // Returns True
    this.dictionary.spellCheck('exmple'); // Returns False

    // Example usage of Check and Suggest
    const result: SpellCheckResult = this.dictionary.checkAndSuggest('exmple');
    console.log(result); // { misspelled: true, suggestions: ['example'] }

    // Example usage of getSuggestions
    const suggestions: string[] = this.dictionary.getSuggestions('exmple');
    console.log(suggestions); // ['example']
  }
}

API Reference

SpellCheckerService

  • getDictionary(rawContent: string): Dictionary
    Creates a Dictionary instance from raw dictionary content string.

  • normalizeDictionary(content: string): Promise<string>
    Cleans, sorts, and normalizes raw dictionary content.

Dictionary

  • spellCheck(word: string): boolean
    Checks if the word is spelled correctly.

  • isMisspelled(word: string): boolean
    Returns true if the word is misspelled.

  • getSuggestions(word: string, limit?: number, maxDistance?: number): string[]
    Returns suggestions for a misspelled word.

  • checkAndSuggest(word: string, limit?: number, maxDistance?: number): SpellCheckResult
    Returns misspelled status and suggestions.

  • setRegExps(patterns: RegExp[]): void
    Add regex patterns to ignore in spell checking.

  • clearRegExps(): void
    Clear regex patterns.


Differences from ngx-spellchecker

  • Supports Angular Ivy and Angular 16+
  • Updated TypeScript and Angular best practices

Contributing

Contributions are welcome! Please open issues or pull requests on the github repository ngx-spellchecker-ivy.


License

MIT License © Munir Fati Haji


Acknowledgments

This project is a fork of the original ngx-spellchecker by Original Authors aroliant-admin, jacobsamro.