Skip to content

Open source projects by Jean Carlo Benites Porras.aquilabot.dev

Installation

  • An Angular app on version 22. The package declares @angular/core and @angular/common ^22.0.0 as peer dependencies.
  • Node.js and npm to build the library. The repository’s CI uses Node 24, and package.json pins npm@11.20.0 as the package manager.

The library has no runtime dependencies besides Angular.

Terminal window
git clone https://github.com/Aquilabot/ngx-sse-resource
cd ngx-sse-resource
npm ci
npm run build

npm run build runs ng build ngx-sse-resource (ng-packagr) and copies README.md and LICENSE into the output. The package ends up in dist/ngx-sse-resource.

From your app’s directory, install the built folder by path:

Terminal window
npm install /path/to/ngx-sse-resource/dist/ngx-sse-resource

npm records it in your package.json as a file: dependency. Rebuild the library and reinstall when you pull new changes.

Everything is exported from the package root:

import { sseResource, SSE_EVENT_SOURCE, SseConnectionError } from 'ngx-sse-resource';
import type { SseResource, SseResourceOptions, SseStatus } from 'ngx-sse-resource';

There are no providers to register. sseResource() works in any injection context. See Quick start.

Written from the code and tests of each repository. If a page and the code disagree, the code is right and the page has a bug. Open an issue.