Record a gesture sample with your Leap Motion device.
leap-record, a simple command-line utility that redirects the JSON-encoded frames emitted from the Leap's websocket stream to a file. The resulting motion sample consists of line-delimited JSON. To indicate the nature of the formatting, you'll want to use either
.ldjson as your file extension.
You'll get prompted to start and stop your recording:
Hit return to start recording ...
After hitting return:
Hit return again to stop recording ...
npm install -g leap-record