<commit_before># Relative Time

Formats JavaScript dates to relative time strings (e.g., "3 hours ago").

Based on the [Unicode CLDR][] locale data. Powered by [jquery/globalize][].

[Unicode CLDR]: http://cldr.unicode.org/
[jquery/globalize]: http://globalizejs.com/

## Usage

    npm install --save relative-time globalize cldr-data

```js
var cldrData = require("cldr-data");
var Globalize = require("globalize");
var RelativeTime = require("relative-time");

// Feed Globalize on CLDR.
Globalize.load(cldrData.entireSupplemental(), cldrData.entireMainFor("en"));
Globalize.locale("en");

var relativeTime = new RelativeTime();
console.log(relativeTime.format(new Date()));
// > now
```

## License

MIT © [<NAME>](http://rafael.xavier.blog.br)
<commit_msg>s/jquery/globalizejs<commit_after># Relative Time

Formats JavaScript dates to relative time strings (e.g., "3 hours ago").

Based on the [Unicode CLDR][] locale data. Powered by [globalizejs/globalize][].

[Unicode CLDR]: http://cldr.unicode.org/
[globalizejs/globalize]: http://globalizejs.com/

## Usage

    npm install --save relative-time globalize cldr-data

```js
var cldrData = require("cldr-data");
var Globalize = require("globalize");
var RelativeTime = require("relative-time");

// Feed Globalize on CLDR.
Globalize.load(cldrData.entireSupplemental(), cldrData.entireMainFor("en"));
Globalize.locale("en");

var relativeTime = new RelativeTime();
console.log(relativeTime.format(new Date()));
// > now
```

## License

MIT © [<NAME>](http://rafael.xavier.blog.br)

{'fraction_non_alphanumeric': 0.1650422352176738, 'fraction_numerical': 0.001299545159194282, 'mean_word_length': 5.03921568627451, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4275327', 'n_tokens_mistral': 529, 'n_tokens_neox': 506, 'n_words': 128}