Adding external libraries to postman

Hi @kunagpal,
Thanks for your time :grinning:.

still observing the below error in console,

ReferenceError | faker is not defined

TypeError | Cannot set property 'faker' of undefined

Following is the screenshot,

Following is the snippet iā€™m using in Pre-Request Script

pm.sendRequest('https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js', (err, res) => {
  (new Function(res.text()))();

var randomName = faker.name.findName();

console.log(randomName);

});

can you please tell, what and where iā€™m doing wrong ?

Thanks & regards,
Gopi :cowboy_hat_face: .