<commit_before>Swipe
=====

[![Build Status](https://travis-ci.org/lyfeyaj/swipe.svg?branch=master)](https://travis-ci.org/lyfeyaj/swipe)
[![npm version](https://badge.fury.io/js/swipejs.svg)](https://badge.fury.io/js/swipejs)
[![npm](https://img.shields.io/npm/dt/swipejs.svg)]()
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/lyfeyaj/swipe/master/LICENSE.md)


> Swipe is the most accurate touch slider. It is extremely lightweight (only 6kb minified) and works across all browsers, including IE7+.

> Support both React.js and Angular.js(v1)

## Note

This repo is a continuation of the dead [Swipe](https://github.com/thebird/Swipe) project. Our mission is to keep Swipe alive and moving forward, with maintenance fixes and new features. Pull Requests are welcome!

## Usage

### Preview

[![Preview Image](docs/images/preview.png)](https://swipe.js.org)

Thanks to [@loup-brun](https://github.com/loup-brun)

### Installation

```bash
npm i swipejs
```

See the [online example](https://swipe.js.org) for a simple demo.

### Markup

Swipe requires just a few lines of markup. Here is an example:

``` html
<div id="slider" class="swipe">
  <div class="swipe-wrap">
    <div></div>
    <div></div>
    <div></div>
  </div>
</div>
```
<commit_msg>add yarn installation and import code<commit_after>Swipe
=====

[![Build Status](https://travis-ci.org/lyfeyaj/swipe.svg?branch=master)](https://travis-ci.org/lyfeyaj/swipe)
[![npm version](https://badge.fury.io/js/swipejs.svg)](https://badge.fury.io/js/swipejs)
[![npm](https://img.shields.io/npm/dt/swipejs.svg)]()
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/lyfeyaj/swipe/master/LICENSE.md)


> Swipe is the most accurate touch slider. It is extremely lightweight (only 6kb minified) and works across all browsers, including IE7+.

> Support both React.js and Angular.js(v1)

## Note

This repo is a continuation of the dead [Swipe](https://github.com/thebird/Swipe) project. Our mission is to keep Swipe alive and moving forward, with maintenance fixes and new features. Pull Requests are welcome!

## Usage

### Preview

[![Preview Image](docs/images/preview.png)](https://swipe.js.org)

Thanks to [@loup-brun](https://github.com/loup-brun)

### Installation

#### NPM
```bash
npm i swipejs
```

#### Yarn
```bash
yarn add swipejs
```

See the [online example](https://swipe.js.org) for a simple demo.

### Import in your project 

#### ES5

```const Swipe = require('swipejs');```

#### ES6 and newer

```import Swipe from 'swipejs';```

### Markup

Swipe requires just a few lines of markup. Here is an example:

``` html
<div id="slider" class="swipe">
  <div class="swipe-wrap">
    <div></div>
    <div></div>
    <div></div>
  </div>
</div>
```

{'fraction_non_alphanumeric': 0.18053097345132743, 'fraction_numerical': 0.002831858407079646, 'mean_word_length': 4.424184261036468, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, 'https://': 22, 'lorem ipsum': 0, 'www.': 0, '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': '2418248', 'n_tokens_mistral': 1056, 'n_tokens_neox': 992, 'n_words': 244}