<commit_before># ngx-card [![npm version](https://badge.fury.io/js/ngx-card.svg)](https://www.npmjs.com/package/ngx-card) [![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) 


[![Build Status](https://travis-ci.org/ihym/ngx-card.svg?branch=master)](https://travis-ci.org/ihym/ngx-card)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6ff9f19109dc4c9ba18eb8cd893d67d7)](https://www.codacy.com/app/ihym/ngx-card?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ihym/ngx-card&amp;utm_campaign=Badge_Grade)

Angular 2+ wrapper for [card.js](https://github.com/jessepollak/card) 

![card](http://i.imgur.com/qG3TenO.gif) 
 
 
[https://ihym.github.io/ngx-card/](https://ihym.github.io/ngx-card/) 


## Installation

Install through `npm`:

```bash
npm install --save ngx-card
```

If you use **SystemJS** to load your files, you should adjust your configuration to point our UMD bundle:

```javascript
map: {
  ...
  'ngx-card/ngx-card': 'node_modules/ngx-card/bundles/ngx-card.umd.js'
}
```

#### Dependencies
This library depends on [https://github.com/jessepollak/card](https://github.com/jessepollak/card) (tested with 2.3.0).
We don't ship with the library, but you have to take care of including it in your page. There are various ways to achieve this, for example by adding this at the end of your `<body>`:

```html
<script src="https://unpkg.com/card@2.3.0/dist/card.js">
```


## API
### [card]
#### Input

* container: any: A selector or DOM element for the form where users will be entering their information
<commit_msg>chore(app): close script tag in README<commit_after># ngx-card [![npm version](https://badge.fury.io/js/ngx-card.svg)](https://www.npmjs.com/package/ngx-card) [![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) 


[![Build Status](https://travis-ci.org/ihym/ngx-card.svg?branch=master)](https://travis-ci.org/ihym/ngx-card)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6ff9f19109dc4c9ba18eb8cd893d67d7)](https://www.codacy.com/app/ihym/ngx-card?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ihym/ngx-card&amp;utm_campaign=Badge_Grade)

Angular 2+ wrapper for [card.js](https://github.com/jessepollak/card) 

![card](http://i.imgur.com/qG3TenO.gif) 
 
 
[https://ihym.github.io/ngx-card/](https://ihym.github.io/ngx-card/) 


## Installation

Install through `npm`:

```bash
npm install --save ngx-card
```

If you use **SystemJS** to load your files, you should adjust your configuration to point our UMD bundle:

```javascript
map: {
  ...
  'ngx-card/ngx-card': 'node_modules/ngx-card/bundles/ngx-card.umd.js'
}
```

#### Dependencies
This library depends on [https://github.com/jessepollak/card](https://github.com/jessepollak/card) (tested with 2.3.0).
We don't ship with the library, but you have to take care of including it in your page. There are various ways to achieve this, for example by adding this at the end of your `<body>`:

```html
<script src="https://unpkg.com/card@2.3.0/dist/card.js"></script>
```


## API
### [card]
#### Input

* container: any: A selector or DOM element for the form where users will be entering their information

{'fraction_non_alphanumeric': 0.17780502759043532, 'fraction_numerical': 0.01594114040465972, 'mean_word_length': 4.6747826086956525, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 28, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '548527', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1194, 'n_words': 237}