<commit_before># cf-formatter

Date, Time and maybe currency in the future, formatter for cf projects.

[![build status](https://secure.travis-ci.org/serby/cf-formatter.svg)](http://travis-ci.org/serby/cf-formatter)
[![dependency status](https://david-dm.org/serby/cf-formatter.svg)](https://david-dm.org/serby/cf-formatter)

## Installation

```
npm install --save cf-formatter
```

## Usage

```js
var formatter = require('./')
  , config = require('./config.json')
  , format = formatter(config)
  , log = console.log

// Using locale formats from the clock locale. Defined in config.locale
log(format(new Date(), 'L'))
log(format(new Date(), 'LTS'))
log(format(new Date(), 'LLL'))

// Using special formats
log(format(new Date(), 'calendar'))
log(format(new Date(), 'from'))

// Using custom formats from config.formats
log(format(new Date(), 'iso'))
log(format(new Date(), 'isoFileSystem'))

// Override timezone at format level
log(format(new Date(), 'timezone', 'America/New_York'))

// Output
// 4 Apr 2015
// 15:42:48
// 4 April 2015 15:42
// Today at 15:42
// a few seconds ago
// 2015-04-04T15:42:48.4848Z
// 20150404T034248Z
// Saturday 4 April 2015 10:42 EDT
```

## Credits
[<NAME>](https://github.com/serby/)

## License

ISC
<commit_msg>Updating badges<commit_after># cf-formatter

Date, Time and maybe currency in the future, formatter for cf projects.

[![build status](https://secure.travis-ci.org/clocklimited/cf-formatter.svg)](http://travis-ci.org/clocklimited/cf-formatter)
[![dependency status](https://david-dm.org/clocklimited/cf-formatter.svg)](https://david-dm.org/clocklimited/cf-formatter)

## Installation

```
npm install --save cf-formatter
```

## Usage

```js
var formatter = require('./')
  , config = require('./config.json')
  , format = formatter(config)
  , log = console.log

// Using locale formats from the clock locale. Defined in config.locale
log(format(new Date(), 'L'))
log(format(new Date(), 'LTS'))
log(format(new Date(), 'LLL'))

// Using special formats
log(format(new Date(), 'calendar'))
log(format(new Date(), 'from'))

// Using custom formats from config.formats
log(format(new Date(), 'iso'))
log(format(new Date(), 'isoFileSystem'))

// Override timezone at format level
log(format(new Date(), 'timezone', 'America/New_York'))

// Output
// 4 Apr 2015
// 15:42:48
// 4 April 2015 15:42
// Today at 15:42
// a few seconds ago
// 2015-04-04T15:42:48.4848Z
// 20150404T034248Z
// Saturday 4 April 2015 10:42 EDT
```

## Credits
[<NAME>](https://github.com/serby/)

## License

ISC

{'fraction_non_alphanumeric': 0.18454258675078863, 'fraction_numerical': 0.051261829652996846, 'mean_word_length': 4.329831932773109, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6971146', 'n_tokens_mistral': 984, 'n_tokens_neox': 855, 'n_words': 221}