DeepSpeech with javascript

Following this issue


Ask an advice: how I can must use deepspeech API of version 0.5.1? Can anyone give example?
I can`t use newer version of API (more than 0.5.1) because I want use pretrained models and models 0.5.1 is latest.

The best example for 0.5 is looking at native_client/deepspeech.h and native_client/javascript/client.js.

Newer versions have https://deepspeech.readthedocs.io/en/latest/NodeJS-API.html

(which I just noticed we forgot to update)

Okay, thank you for answer.