I am doing some code samples with node.js and yargs and I am trying to access yargs.command and yargs.version which I easily had access to with require.
But when I use import with the line:
import * as yargs from 'yargs';
It returns an error saying * is an invalid token
How can I successfully migrate to import?