あわや

awaya
N1副Adverb
Meanings
1
almost; nearly; narrowly
Examples1
あわやだいじこになるところでした。
あわや大事故になるところでした。
It almost became a major accident.