Modafinil is a prescription medicine that is primarily used to treat sleep disorders equivalent to narcolepsy, obstructive sleep apnea, and shift work sleep disorder. It’s a wakefulness-selling agent that has gained reputation for its off-label use as a cognitive enhancer. …