1.0.1 • Published 2 years ago

bionic-text v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Bionic Text

A NPM package to convert plain text to highlighted text with artificial fixation points for bionic reading.

Usage/Examples

import { bionicText } from "bionic-text";

const string = "This string has to be highlighted to support bionic reading.";

const bionicReadString = bionicText(string);
console.log(bionicReadString);

Console Output

<strong>Th</strong>is <strong>stri</strong>ng <strong>has</strong> <strong>t</strong>o <strong>be</strong> <strong>high</strong>lighted <strong>t</strong>o <strong>supp</strong>ort <strong>bio</strong>nic <strong>read</strong>ing.

Rendered Output

This string has to be highlighted to support bionic reading.