Barely; narrowly; only just; with great difficulty — doing something with only a small margin or chance.
電車にかろうじて間に合った。
I barely made the train.
収支はかろうじて黒字だったが、先行きは不安だ。
The accounts were barely in the black, but the future is uncertain.
かろうじて助かったが、怪我は深刻だった。
He was only just saved, but his injuries were serious.