NodeJS docker api for check user registry

Is there any nodejs api which I can user to login user to the docker hub,
I didnt find any docs expect
I want to use some rest call with user password and registry. is there a way to do it with nodejs (not using the child-process to call the docker cli)

I need to run the following with rest call, is it possible?

docker login -u username -p password registry

Source: Docker Questions