open-index/open-npm huggingface dataset:
npm package: @ng-casino/blackjack
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.6.
Latest version: 0.0.1

# Blackjack

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.6.

## Code scaffolding

Run `ng generate component component-name --project Blackjack` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project Blackjack`.
> Note: Don't forget to add `--project Blackjack` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build Blackjack` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build Blackjack`, go to the dist folder `cd dist/blackjack` and run `npm publish`.

## Running unit tests

Run `ng test Blackjack` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @ng-casino/higher-lower
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.6.
Latest version: 1.0.0

# HigherLower

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.6.

## Code scaffolding

Run `ng generate component component-name --project HigherLower` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project HigherLower`.
> Note: Don't forget to add `--project HigherLower` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build HigherLower` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build HigherLower`, go to the dist folder `cd dist/higher-lower` and run `npm publish`.

## Running unit tests

Run `ng test HigherLower` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @ng-clown/subs
Description: An angular library to manage subscriptions to make our code much cleaner.
Latest version: 0.0.8

# Subs

An angular library to manage subscriptions to make our code much cleaner.

## Installation

To install this package, just run the following command in the root directory of your angular project.

```bash
npm i @ng-clown/subs
```

## How to use

To use this service, just inject subs to your component constructor.

```typescript
import { Subs } from '@ng-clown/subs';
@Component({ ...  })
export class AppComponent {
    constructor(private subs: Subs) {}
}
```

After injecting the service we need to keep track of the observables by adding it to subs service instance using the `add()` method.

### Adding observables to subs service

```typescript
import { Subs } from '@ng-clown/subs';
@Component({ ...  })
export class AppComponent {

    sampleObservable$: Observable<any> = ...

    constructor(private subs: Subs) {
      this.subs.add(this.sampleObservable$);
    }
}
```

Now we don't have to worry about the all the subscriptions form `sampleObservable$` as long as we call the `unsubscribeAll()` method of subs service when component is destroyed.

### Unsubscribe all subscriptions

```typescript
import { Subs } from '@ng-clown/subs';
@Component({ ...  })
export class AppComponent {

    sampleObservable$: Observable<any> = ...

    constructor(private subs: Subs) {
      this.subs.add(this.sampleObservable$);
    }

    ngOnDestroy() {
        this.subs.unsubscribeAll();
    }
}
```
npm package: @ng-cortex/cli
Description: ## 快速上手
Author: cloudplex
Latest version: 3.2.20240426

# NgCortex CLI

## 快速上手

实际项目开发中，你会需要对 TypeScript 代码的构建、调试、打包部署等一系列工程化的需求。 我们强烈建议使用 `@ng-cortex/cli` 工具链辅助进行开发，下面我们用一个简单的实例来说明。

### 安装脚手架工具

```bash
npm install -g @ng-cortex/cli
```

### 创建一个项目

执行以下命令，在当前目录下新建一个名称为 `PROJECT-NAME` 的文件夹，并自动安装好相应依赖。

```bash
nc new PROJECT-NAME
```

### 开发调试

一键启动调试，运行成功后显示欢迎页面。

```bash
nc serve --open
```

### 创建一个库

执行以下命令，创建一个名称为 `LIBRARY-NAME` 的库。

```bash
nc generate library LIBRARY-NAME
```

> 库是前端封装的最小物理单位，新创建的库是空白的，直接构建会出错，请继续在库里创建并导出页面、模块和组件等内容。

然后进入库的 src 目录。

```bash
cd ./projects/LIBRARY-NAME/src
```

### 创建一个页面

执行以下命令，创建一个名称为 `PAGE-NAME` 的页面，在当前目录下建立页面需要的模块和组件，并导入路由模块。

```bash
nc generate page PAGE-NAME
```

> 模块和组件也是类似的方式创建，具体请输入 `nc generate --help` 查阅。

### 配置路由

在 `src/app/app-routing.module.ts` 中配置新创建的页面

```typescript
/**
 * 路由配置列表
 */
const routes: NcRoute[] = [

    ...

    {
        path: 'main', component: LayoutComponent,
        children: [
            
            ...

            // 此处配置开发中的业务路由
            // 例如：
            // {
            //     path: '页面路由',
            //     data: { name: '页面标题', major: true, reused: true },
            //     loadChildren: () => import('库路径').then(library => library['模块名称'])
            // }
            {
                path: 'page-route',
                data: { name: 'Page Title', major: true, reused: true },
                loadChildren: () => import('library-path').then(library => library.PageModule)
            }
        ],
        canActivate: [NcAfterLoginGuard],
        canActivateChild: [NcAfterLoginGuard]
    },

    ...

];
```

### 构建和部署

执行以下命令，构建一个名称为 `LIBRARY-NAME` 的库。

```bash
nc build LIBRARY-NAME
```

文件会被打包到 `dist` 目录中。
npm package: @ng-cortex/core
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0.
Author: cloudplex
Latest version: 3.2.20240426

# Core

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0.

## Code scaffolding

Run `ng generate component component-name --project core` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project core`.
> Note: Don't forget to add `--project core` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build core` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build core`, go to the dist folder `cd dist/core` and run `npm publish`.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @ng-cortex/utils
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0.
Author: cloudplex
Latest version: 3.2.20240426

# Utils

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0.

## Code scaffolding

Run `ng generate component component-name --project utils` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project utils`.
> Note: Don't forget to add `--project utils` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build utils` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build utils`, go to the dist folder `cd dist/utils` and run `npm publish`.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @ng-dashboard/authentication
Description: Gives you a ready to use login and signup mechanism easily. You need to give an endpoint to signup and signin.
Latest version: 0.1.12

# Angular 6+ Signup, Login form @ng-dashboard/authentication
Gives you a ready to use login and signup mechanism easily. You need to give an endpoint to signup and signin.


## Install

1. install the package ( most likely on a @ng-dashboard/core project but still you can use some features)

```
npm install @ng-dashboard/authentication
```

2. Add it to your `app.module`:

```
...
  imports: [
    BrowserModule,
    NgAuthenticationModule.forRoot({
      baseUrl: 'https://my-api-set.com', // You need to support /api/signin, and /api/signup post methods
      provideFacebook: true,
    }),
...