<commit_before>Get File Info
=============

A simple Statamic plugin to output file information.

## Installing

Drop the `fileinfo folder` into the Statamic `/_add-ons/` folder.

## Example

~~~
<ul>
{{ fileinfo file="/assets/docs/mydocument.pdf" }}
  <li>Your file extension is: {{ file_ext }}
  <li>Tour file size is: {{ file_size }}
  <li>The type of file is: {{ file_type }}
{{ /fileinfo }}
</ul>
~~~

## Parameters

- file
<commit_msg>fixed code highlighting.<commit_after>Get File Info
=============

A simple Statamic plugin to output file information.

## Installing

Drop the `fileinfo` folder into the Statamic `/_add-ons/` folder.

## Example

~~~
<ul>
{{ fileinfo file="/assets/docs/mydocument.pdf" }}
  <li>Your file extension is: {{ file_ext }}
  <li>Tour file size is: {{ file_size }}
  <li>The type of file is: {{ file_type }}
{{ /fileinfo }}
</ul>
~~~

## Parameters

- file

{'fraction_non_alphanumeric': 0.18029115341545351, 'fraction_numerical': 0.0, 'mean_word_length': 4.022471910112359, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '692905', 'n_tokens_mistral': 304, 'n_tokens_neox': 294, 'n_words': 92}