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

itc-payment-test

v0.0.64

Published

**ItcPaymentTest** est une librairie Angular créée pour intégrer un système de **paiement en ligne via SATIM (Algérie)**. Elle fournit des composants prêts à l’emploi, une interface utilisateur moderne, une gestion de sécurité et un système de notificatio

Readme

🧾 ItcPaymentTest

ItcPaymentTest est une librairie Angular créée pour intégrer un système de paiement en ligne via SATIM (Algérie). Elle fournit des composants prêts à l’emploi, une interface utilisateur moderne, une gestion de sécurité et un système de notification intégré.


📦 Installation

Installez la librairie via NPM ou Yarn :

npm install itc-payment-test
# ou
yarn add itc-payment-test

⚙️ Configuration obligatoire après installation

1. ➕ Ajouter les styles de @ngneat/hot-toast

Dans le fichier angular.json du projet hôte :

"styles": [
  "node_modules/@ngneat/hot-toast/src/styles/styles.css",
  "src/styles.scss"
]

🎯 Cela permet d'afficher les notifications toast.


2. ➕ Ajouter provideHttpClient() dans main.ts

Dans un projet Angular standalone (v16+) :

import { bootstrapApplication } from '@angular/platform-browser';
import { provideHttpClient } from '@angular/common/http';
import { AppComponent } from './app/app.component';

bootstrapApplication(AppComponent, {
  providers: [provideHttpClient()]
});

3. 🎨 Ajouter les styles Tailwind générés

La lib utilise Tailwind CSS compilé dans tailwind.bundle.css. Pour que les styles soient actifs dans le projet consommateur :

👉 Ajoutez ce chemin dans angular.json du projet hôte :

"styles": [
  "node_modules/itc-payment-test/src/lib/styles/tailwind.bundle.css",
  ...
]

4. 🖼️ Intégrer les images (CIB, etc.)

Pour que les images de la lib soient disponibles, ajoutez ceci dans le angular.json :

"assets": [
  {
    "glob": "**/*",
    "input": "node_modules/itc-payment-test/src/lib/assets",
    "output": "assets/"
  }
]

Ensuite, dans le code HTML, utilisez les images comme ceci :

<img src="assets/images/carte_CIB.jpg" alt="CIB" />

🔌 Intégration dans votre projet

Avec NgModule classique :

import { PaymentModule } from 'itc-payment-test';

@NgModule({
  imports: [PaymentModule]
})
export class AppModule {}

Avec standalone components :

import { PaymentModule } from 'itc-payment-test';

@Component({
  standalone: true,
  imports: [PaymentModule],
  ...
})
export class AppComponent {}

📋 Fonctionnalités incluses

  • 💳 Paiement CIB / Edahabia via SATIM
  • 🔐 Sécurité avec normes SSL
  • 🔔 Notifications avec @ngneat/hot-toast
  • 🎨 Interface moderne (TailwindCSS intégré)
  • 🧩 Utilisable dans tout projet Angular
  • 👥 Support multi-tenant

🛠️ Build de la librairie

ng build itc-payment-test

Le build est généré dans : dist/itc-payment-test/


🧪 Générer les styles Tailwind optimisés (purge)

Pour générer un fichier tailwind.bundle.css optimisé :

npx tailwindcss -i ./projects/itc-payment-test/src/lib/styles/tailwind.input.css -o ./projects/itc-payment-test/src/lib/styles/tailwind.bundle.css --minify --content "./projects/itc-payment-test/**/*.{html,ts}"

⚠️ À exécuter avant le build de la lib.


🚀 Publication sur NPM

cd dist/itc-payment-test
npm publish --access public

🧪 Tests unitaires

ng test itc-payment-test

📚 Liens utiles


🏢 À propos

Librairie développée par ITCOMP, société de solutions informatiques basée en Algérie 🇩🇿
📧 Contact : [email protected]