If your dog is vomiting worms then intestinal parasites are a problem in your dog. Intestinal parasites may not be the only problem. Parvovirus is a life threatening, serious disease that needs immediate veterinary medical attention. Regardless of the cause your dog needs veterinary care now do not wait 2 days. Weakness, dehydration, hypoglycemia, and hypothermia are all secondary complications that if untreated can be fatal.
I would have your dog examined by a veterinarian, screened for intestinal parasites, tested for parvovirus, and started on supportive care. Good luck.
I'm giving him pepto and chicken broth water with salt and sugar in it he is a chihuahua 4 to 6 pounds well this hurt or help