An onomatopoeic adverb expressing a meaning-laden or sly grin; often used as 'niyari to (do)' or 'grin slyly'.
彼は秘密を知っているかのようにニヤリと笑った。
He grinned as if he knew the secret.
犯人を見つけた探偵はニヤリとした表情を見せた。
The detective who found the culprit showed a sly grin.
その言葉を聞いて彼女はニヤリと小さく笑った。
Hearing those words, she gave a small, knowing grin.