Provided herein are substituted imidazo [1, 2-a] pyridin-2-ylamine compounds, for example, of formula (A), and pharmaceutical compositions thereof; and methods of their use for treating, preventing, or ameliorating one or more symptoms of a Janus kinase-mediated disease.