armature export

is there a script to export armatures, and they’re animations to a read-able ASCII file?
if not can some one make one, and a reference or something so I can figure it out?
Thanks, it would be greatly appreciated. It’s for a game, my models are in OBJ format.

if you dont care about animation data, bvh works, but it dosnt store bone ends like blender