open-index/open-npm huggingface dataset:
npm package: @jitso_dev/prettier-config
Description: Prettier configuration file for Jitso
Author: Niels Rolleman
Latest version: 1.0.2

# Prettier config
> This is the prettier config for Jitso projects
## Installation 
```
npm install --save-dev --save-exact prettier
npm install --save-dev prettier-config-jitso
```

## Usage 
<sub>**Edit `package.json`**</sub>
```
{
    // ...
    "prettier": "@jitso/prettier-config"
}
```
<sub>Open `terminal`</sub>
```
npx prettier --write .
`````
npm package: @jitsu/angular
Description: Jitsu JavaScript SDK for Angular (more at http://jitsu.com/docs/js-sdk)
Author: Jitsu Dev
Latest version: 3.1.5

# Official Jitsu SDK for Angular

## Questions?

### [Join Jitsu Slack](https://jitsu.com/slack)

## Links

- [Official SDK Docs](https://jitsu.com/docs/sending-data/js-sdk)

## General

This package is a wrapper around `@jitsu/sdk-js`, with added functionality related to Angular.

## Installation

To use Jitsu SDK, install npm package

```bash
npm install @jitsu/angular
```

and import Jitsu SDK module to your Angular application.

```typescript
import { NgxJitsuModule } from '@jitsu/angular';

@NgModule({
  // ...
  imports: [
    NgxJitsuModule.forRoot({
      tracking_host: "__JITSU_HOST__",
      key: "__API_KET__",
          // See Jitsu SDK parameters section for more options
    }),
  ],
  // ...
})
export class AppModule {}
```
List of all parameters available in the [SDK Reference](https://jitsu.com/docs/sending-data/js-sdk/parameters-reference)

## Usage

```typescript
@Component({
  selector: 'app-root',
  template: '<button (click)="onBtnClick(\'test_btn\')">Test button</button>',
})
export class AppComponent implements OnInit {
  constructor(private jitsuTracker: NgxJitsuService, private someUserService: SomeUserService) {
    // subscribe on router navigation end event and track page view
    router.events
      .filter(event => event instanceof NavigationEnd)
      .subscribe((event: NavigationEnd) => {
        this.jitsuTracker.trackPageView()
      });
  }
  
  onBtnClick(btnName:string) {
    // send btn_click_event with button name payload on button click
    this.jitsuTracker.track('btn_click_event', {btn: btnName})
  }
  
  ngOnInit() {
    // identify current user for all track events
    this.someUserService.currentUser.subscribe((user: User) => {
      this.jitsuTracker.id({id: user.ID, email: user.EMAIL})
    });
  }
}
```

## Jitsu SDK parameters and methods

* [Parameters](https://jitsu.com/docs/sending-data/js-sdk/parameters-reference)
* [Methods](https://jitsu.com/docs/sending-data/js-sdk/methods-reference) - you can call all SDK methods from `NgxJitsuService` too

## Example app

You can find example app [here](https://github.com/jitsucom/jitsu-js/tree/master/examples/angular-app).
npm package: @jitsu/cli
Description:  CLI interface of Jitsu (👉 https://jitsu.com),
Latest version: 0.5.1

# Jitsu CLI

#### Quick start

```
npx @jitsu/cli --help
```

Submodule of [Jitsu SDK](https://github.com/jitsucom/jitsu-sdk).

[Read more →](https://github.com/jitsucom/jitsu-sdk).