open-index/open-npm huggingface dataset:
npm package: @polyrepo/template-base
Description: Template for creating bun projects
Latest version: 1.3.17

# template bun

Template for creating bun projects.

### How to use

Recommended to use polyrepo manger:

```sh
npm i -g @polyrepos/polyrepo-manager
```

In your project's package.json set:

```json
{
  "polyCopy": {
    "@polyrepo/template-base": [
      "package.json.merge",
      ".github",
      "LICENSE",
      ".gitignore",
      "biome.json",
      ".husky",
      "tsconfig.json",
      "tsconfig.ci.json"
    ],
    "@polyrepo/template-full-stack": [
      ".gitignore",
      "biome.json",
      "tsconfig.json"
    ]
  }
}
```

Setup and run:

```sh
poly copy
```
npm package: @polyrithm/api
Description: Shareable ApiService as a wrapper for Angular HttpClient
Latest version: 1.1.3

# api

Shareable ApiService as a wrapper for Angular HttpClient

## Usage

```ts
//app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';

import { ApiModule } from '@polyrithm/api';

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    ApiModule.forRoot({ baseUrl: 'https://localhost:4200/api' })
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}

// feature.component.ts

import { Component } from '@angular/core';
import { ApiService } from '@polyrithm/api';

@Component({
  selector: 'app-feature',
  templateUrl: './feature.component.html',
  styleUrls: ['./feature.component.scss']
})
export class FeatureComponent {
  title = 'polyrithm';

  cats$ = this.api.get('/cats');
  constructor(private api: ApiService) {
  }

  ngOnInit() {
    this.cats$.subscribe(cats => console.log(cats))
  }
}




```

## Running unit tests

Run `nx test api` to execute the unit tests.
npm package: @polyrithm/click-prevent
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.0.9

# click-prevent

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test click-prevent` to execute the unit tests.
# click-prevent

A click event with stopPropagation;

# Install

```bash

$ npm install @polyrithm/click-prevent --save

```

or

```bash
yarn add @polyrithm/click-prevent
```

## Usage

```ts

// app.module or any module

import {ClickPreventModule} from '@polyrithm/click-prevent';

@NgModule({
  ...
  imports: [ClickPreventModule]
  ...
})

class MyModule {

}

// Example Component

<button class="btn" (click.prevent)="onClick($event, data)">
   Click me
</button>

```