npm-downloader tiny helper to download package from npm and extract the source import { downloadPackage } from "npm-pkg-downloader"; downloadPackage("@babel/core", "test_dir");