open-index/open-npm huggingface dataset:
npm package: @sammaye/ng-csv
Description: Angular CSVs
Author: Sammaye
Latest version: 1.0.2

# NgCsv

Making CSVs with Angular.

This library is really simple, just a single class with a small and slim API.

## Install

```
npm i @sammaye/ng-csv --save
```

## Use

Much of the documentation for the different options can be found directly in the code. It is very well documented and should be easy to read.

Here I will just give a quick example of usage:
```javascript
new NgCsv(
  [
    {
      address: "T",
      name: "T",
      email: "T",
      from: "T",
      to: "T",
      days: "T",
      hours: "T"
    }
  ],
  'Employee Details', 
  {
    labels: [
      'Address',
      'Name',
      'Email Address',
      'From',
      'To',
      'Days',
      'Hours',
    ]
  }
).download();
```

Will print and download a CSV which contains one row, with the labels as the column headers using the filename `employee_details.csv`.
npm package: @sammaye/ng-textarea-autosize
Description: Autosize textareas
Author: Sammaye
Latest version: 1.0.0

# ng-textarea-autosize

Angular 8.0+ directive for making textareas grow and shrink automatically to the text within them.

Basically copied from https://github.com/evseevdev/ngx-textarea-autosize, I used this to learn and understand Angular events and directives, adding my own spin on the plugin and even some extra features such as maximum height before scroll and removing processor intensive events to make it faster and slimmer.

This directive, above all, is designed to be a play thing as my first directive.

## Install

```bash
npm install @sammaye/ng-textarea-autosize --save
```

## Use
In a module:

```javascript
import {NgTextareaAutosizeModule} from "@sammaye/ng-textarea-autosize.module"; import {NgModule} from "@angular/core";

@NgModule({
    imports: [
        NgTextareaAutosizeModule,
    ]
})
```

And then just add the directive to a textarea of your choosing:

```html
<textarea aurtosize>Smeg</textarea>
```

This directive also comes with a few options:

- `rows` sets the initial rows
- `maxRows` sets the maximum number of rows before scroll starts
- `maxHeight` will override `maxRows` and does the same thing but in pixel measurement (does not work for `rem`/`em`)
npm package: @sammaye/ngx-bootstrap-confirm-modal
Description: Ngx Bootstrap Confirm Modal
Author: Sammaye
Latest version: 1.0.0

# ngx-bootstrap-confirm-modal

A really simple but so very helpful confirm modal for Ngx Bootstrap.

## Install
```bash
npm i @sammaye/ngx-bootstrap-confirm-modal --save
```

## Use

In module:

```typescript
@NgModule({
  imports: [
    ModalModule.forRoot(),
    NgxBootstrapConfirmModalModule,
  ],
})
export class MyModule {
}
```

In Component:

```typescript
componentFunction() {
    this.modalService.show(NgxBootstrapConfirmModal, {
      ignoreBackdropClick: true, initialState: {
        message: `Do you luuuuuv me?`
      }
    }).content.result.subscribe(response => {
      if (response) {
        // yes I do
      }
    });
}
```

As simple as that, it works exactly as how the Ngx Bootstrap documentation says modals should work. All this library does is give you the code to produce a confirmation modal for free.