When by agreement of the parties depositions are taken in shorthand and thereafter transcribed, or are taken down by the use of a typewriter, the court may allow as costs the whole or any part of the expense thereof, as justice may require.
RSA 517:20
PL 337 :20. RL 393:20.