<commit_before># function-stringify

Stringify functions, or more specifically their comments!

You know, because you might want a function body to store something other than just JavaScript.

[![Build Status](https://travis-ci.org/joshgillies/function-stringify.svg)](https://travis-ci.org/joshgillies/function-stringify)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Install

`npm install function-stringify`

## Example

```js
var fnStringify = require('function-stringify')

var template = fnStringify(function () {/*
  <!DOCTYPE html>
  <html>
    <head>
      <title>Welcome to The Internet</title>
    </head>
    <body>
      <h1>Hello, world!</h1>
    </body>
  </html>
*/})

console.log(template)
```
<commit_msg>Update example and usage<commit_after># function-stringify

Stringify functions, or more specifically their comments!

You know, because you might want a function body to store something other than just JavaScript.

[![Build Status](https://travis-ci.org/joshgillies/function-stringify.svg)](https://travis-ci.org/joshgillies/function-stringify)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Install

`npm install function-stringify`

## Example

```js
var fnStringify = require('function-stringify')

var template = fnStringify(function () {/*
  <!DOCTYPE html>
  <html>
    <head>
      <title>Welcome to The Internet</title>
    </head>
    <body>
      <h1>Hello, world!</h1>
    </body>
  </html>
*/}, true)

console.log(template)
```

## Uasge

```js
var fnStringify = require('function-stringify')
```

### fnStringify(fn, format)

`fn` is a function declaration whose body contains a comment block in the format of `/* content */`.

`format` is a boolean flag which when set to true `fnStringify` will attempt to preserve the formatting of the enclosed content string.

{'fraction_non_alphanumeric': 0.1460843373493976, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 4.475274725274725, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6355756', 'n_tokens_mistral': 646, 'n_tokens_neox': 621, 'n_words': 159}