From ce8d054bc058163753a308c63f81d1fc8b123920 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 22:02:43 +0000 Subject: [PATCH 1/2] docs: add pnpm, bun and yarn install instructions Added alternative package manager installation instructions to the README: - yarn add analytics - pnpm add analytics - bun add analytics Closes #482 Co-authored-by: DavidWells --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 439001b0..5778b5ac 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,24 @@ This module is distributed via [npm](https://npmjs.com/package/analytics), which npm install analytics --save ``` +Or with yarn: + +```bash +yarn add analytics +``` + +Or with pnpm: + +```bash +pnpm add analytics +``` + +Or with bun: + +```bash +bun add analytics +``` + Or as a script tag: ```html From f43b400cf7864363215691b32f56c0e5846b832c Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 22:30:56 +0000 Subject: [PATCH 2/2] Remove --save flag from npm install command The --save flag is no longer needed in modern npm versions as it's the default behavior. Co-authored-by: DavidWells --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5778b5ac..500878a2 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ To add or remove an analytics provider, adjust the `plugins` you load into `anal This module is distributed via [npm](https://npmjs.com/package/analytics), which is bundled with [node](https://nodejs.org/) and should be installed as one of your project's dependencies. ```bash -npm install analytics --save +npm install analytics ``` Or with yarn: