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

ngx-cho-common

v2.0.0

Published

This library provides common utilities, models, services, and directives shared across CHO Angular applications.

Downloads

293

Readme

NgxChoCommon

This library provides common utilities, models, services, and directives shared across CHO Angular applications.

Generated with Angular CLI version 17.3.0.

Overview

NgxChoCommon is a foundational library that contains:

  • Common models and interfaces
  • Utility services (error handling, session storage, etc.)
  • Reusable directives
  • Configuration interfaces
  • Shared pipes and guards

Dependencies

This library has no dependencies on other workspace libraries and should be built first.

Peer dependencies:

  • @angular/common
  • @angular/core
  • @js-joda/core
  • file-saver
  • moment

Installation

npm install ngx-cho-common moment

Breaking Changes

ChoModalService has been removed. Applications should replace it with an app-local dialog implementation, such as a native dialog or a PrimeNG dialog/drawer. This library no longer depends on ng-bootstrap.

ngx-spinner and ngx-toastr peer dependencies have been removed. Applications that want CHO guards to show notifications should provide the optional CHO_NOTIFICATION_ADAPTER token.

Optional UI Adapters

import {
  CHO_LOADING_ADAPTER,
  CHO_NOTIFICATION_ADAPTER,
  ChoLoadingAdapter,
  ChoNotificationAdapter,
} from 'ngx-cho-common';

CHO_NOTIFICATION_ADAPTER is used by ChoFeatureGuard when a feature is disabled. CHO_LOADING_ADAPTER is exported for sibling CHO libraries, such as ngx-cho-security, to show app-owned loading UI. Both tokens are optional; the library still works when they are not provided.

Build

Important: This library should be built before any other libraries in the workspace that depend on it.

ng build ngx-cho-common

Build artifacts will be stored in the dist/ngx-cho-common directory.

Development

Code Scaffolding

ng generate component component-name --project ngx-cho-common
ng generate service service-name --project ngx-cho-common
ng generate directive directive-name --project ngx-cho-common

Note: Always include --project ngx-cho-common or the component will be added to the default project.

Running Tests

ng test ngx-cho-common

Publishing

  1. Update version in projects/ngx-cho-common/package.json. Use a major version for the modal-service and UI dependency removal.
  2. Build the library:
    ng build ngx-cho-common --configuration production
  3. Publish to npm:
    cd dist/ngx-cho-common
    npm publish

Usage in Other Libraries

Other libraries in this workspace depend on ngx-cho-common:

  • ngx-cho-security
  • ngx-cho-components

Make sure to build ngx-cho-common first before building dependent libraries.

Further Help