expression, noun
close call; by a hair's breadth; in the nick of time
Describes a situation where disaster was barely avoided; often used as a dramatic set phrase.
事故に遭ったが、危機一髪で助かった。
I was in an accident, but I was saved by a hair's breadth.
彼は危機一髪のところで電車に間に合った。
He caught the train in the nick of time.