Once you have a PhoneNumber instance, use phoneUtil.format() with a PhoneNumberFormat enum to change the display style.
const PNF = require('google-libphonenumber').PhoneNumberFormat;
const phoneUtil = require('google-libphonenumber').PhoneNumberUtil.getInstance();
const number = phoneUtil.parseAndKeepRawInput('202-456-1414', 'US');
// E164 format
console.log(phoneUtil.format(number, PNF.E164));
// => +12024561414
// Original format
console.log(phoneUtil.formatInOriginalFormat(number, 'US'));
// => (202) 456-1414
// National format
console.log(phoneUtil.format(number, PNF.NATIONAL));
// => (202) 456-1414
// International format
console.log(phoneUtil.format(number, PNF.INTERNATIONAL));
// => +1 202-456-1414
// Out-of-country format from US
console.log(phoneUtil.formatOutOfCountryCallingNumber(number, 'US'));
// => 1 (202) 456-1414
// Out-of-country format from CH
console.log(phoneUtil.formatOutOfCountryCallingNumber(number, 'CH'));
// => 00 1 202-456-1414