open-index/open-npm huggingface dataset:
npm package: @mikelgo/ngx-stream-keeper
Description: You don't longer need to worry about handling subscriptions - stream-keeper will do it for you.
Latest version: 13.0.2

# ngx-stream-keeper

You don't longer need to worry about handling subscriptions - stream-keeper will do it for you.

## Installation

```bash
npm install @mikelgo/ngx-stream-keeper
```

## Usage

```typescript

@Component({
  ...
    providers: [NgxStreamKeeper]
})
export class Component {

  constructor(private streamKeeper: NgxStreamKeeper) {
    this.streamKeeper.register(observable$, console.log)
    this.streamKeeper.register(observable$.subscribe(console.log))
  }
  
}

```

## Compatibility
* Version 13.x.x is compatible with RxJs >=7.4.0 (Angular 13.x.x +)
npm package: @mikelgo/nx-dependency-check
Description: Nx Plugin for managing dependency updates and not let your project become outdated
Author: Michael Berger
Latest version: 0.1.1

# nx-dependency-check

A Nx plugin to maintain a healthy project by checking automatically outdated packages.

## Installation

```bash
  npm install @mikelgo/nx-dependency-check
```

## Usage

In your `project.json` you only need to define a new target:

```json
  "targets": {
    "check-deps": {
      "executor": "@mikelgo/nx-dependency-check:check-deps"
    }
}
```
That's it! The plugin itself comes with reasonable defaults:
* It will check all packages listed in your root `package.json` file
* It will use the `latest` tag to check for updates
* It will mark a package as outdated if a package is more than **one major** version behind latest

## Configuration
The `check-deps`-executor provides several configuration options. Here's an example
```json
  "targets": {
    "check-deps": {
      "executor": "@mikelgo/nx-dependency-check:check-deps",
      "options": {
        "dependenciesToCheck": ["@angular/core", "@angular/common", "rxjs", "xng-breadcrumb"],
        "versionOffset": {
        "major": 1
        },
        "versionOffsetOverrides": [{"packageName":  "xng-breadcrumb", "major": 1} ],
        "failOnVersionMismatch": false,
        "inputs": [
          "package.json"
        ],
        "cache": true
      }
    }
}
```
Let's go through the options:
* `dependenciesToCheck`: a array of package names which should be checked. Default is [*] which means that all packages are checked. If you only provide certain package names like in this example this means that only theses packages are checked.
* `versionOffset`: a object which defines the version offset. Default is `{major: 1}` which means that a package is marked as outdated if it is more than one major version behind latest.
* `versionOffsetOverrides`: A configuration where you can overrule the general `versionOffset` for certain packages. This is especially helpful if you have high-frequent packages or simply some packages which you can not update right now.
* `failOnVersionMismatch`: A boolean which defines if the build should fail if outdated packages are found. Default is `true`. Setting this option to `false` might be helpful if you do not want to make passing the deps-check as a hard criteria to pass your build. You wil anyway get a nice report.
* `inputs`: A list of files which are used to determine the packages to check. Default is `["package.json"]` which means that only the root `package.json` is used. You can also provide a list of files like `["package.json", "projects/**/package.json"]` to check all `package.json` files in your projects.
* `cache`: whether to use the nx cache or not. Default is `false`.
## Nx version compatibility
The plugin needs `@nx/devkit` version 16.1.0 or higher.