text.js
Members
(constant) texts#
Text file content and word count as paragrapshs. filename => { paragraphs: [paragraphs], wordCount: [words per paragraph] }
Methods
(mediaPath)#
initTextsReads all text files in *mediaPath* and caches their *paragraphs* and *wordCount*s.
Parameters:
Name | Type | Description |
---|---|---|
mediaPath | string | path to folder storing text files. |
Returns:
array of filenames found in mediaPath folder.