<commit_before># time-ago-pipe
[![Build Status](https://travis-ci.org/AndrewPoyntz/time-ago-pipe.svg?branch=master)](https://travis-ci.org/AndrewPoyntz/time-ago-pipe)

A really simple Angular 2 pipe to convert a date/time into a string of how long from now it is

## Usage
import {}

```<span>{{your_date | timeAgo}}</span>```<commit_msg>readme updated<commit_after># time-ago-pipe
[![Build Status](https://travis-ci.org/AndrewPoyntz/time-ago-pipe.svg?branch=master)](https://travis-ci.org/AndrewPoyntz/time-ago-pipe) [![npm](https://img.shields.io/npm/v/time-ago-pipe.svg?maxAge=2592000)]() [![npm](https://img.shields.io/npm/dt/time-ago-pipe.svg?maxAge=2592000)]() [![GitHub issues](https://img.shields.io/github/issues/AndrewPoyntz/time-ago-pipe.svg?maxAge=2592000?style=plastic)]() [![npm](https://img.shields.io/npm/l/time-ago-pipe.svg?maxAge=2592000)]()


A really simple, lightweight Angular 2 pipe to convert a date/time into a string saying how long ago from now it was.

## Usage

Import into your angular project, as you would for any other library.

Add "TimeAgoPipe" to your declarations in an @NgModule

Then in your component templates:
```<span>{{your_date | timeAgo}}</span>```
{'fraction_non_alphanumeric': 0.17671691792294808, 'fraction_numerical': 0.02512562814070352, 'mean_word_length': 5.424731182795699, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '1475020', 'n_tokens_mistral': 478, 'n_tokens_neox': 425, 'n_words': 87}