From 8c2db75a6457acf44f0781e297e514b935d3dbf1 Mon Sep 17 00:00:00 2001 From: Maninderpal Singh Date: Mon, 28 Aug 2023 11:54:52 +0530 Subject: [PATCH] docs: add npm badge --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index 788dbf3..e498862 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,7 @@ ## XObserver Eliminates multiple instances of IntersectionObserver in your application and allows element level callbacks easily. +[![npm version](https://badge.fury.io/js/@msc24x%2Fxobserver.svg)](https://badge.fury.io/js/@msc24x%2Fxobserver) ## How does it work? 1. XObserver simply maintains a global repository of the IntersectionObservers your application will use. Each global instance have a unique identifier called scope. Those instances can be ensured to be available by calling the `.ping` method under that particular scope.