# Importing external libraries from CDN using Postman

**URL:** <https://community.postman.com/t/importing-external-libraries-from-cdn-using-postman/64270>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [July 18, 2024, 3:45pm UTC](https://community.postman.com/t/importing-external-libraries-from-cdn-using-postman/64270 "2024-07-18T15:45:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![G-Laser](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@G-Laser](https://community.postman.com/u/G-Laser)\
**Post date:** [July 18, 2024, 3:45pm UTC](https://community.postman.com/t/importing-external-libraries-from-cdn-using-postman/64270/1 "2024-07-18T15:45:07Z")

</div>

I’m attempting to import a CDN library to solve the JavaScript 53 bit number limitation but it doesn’t seem to recognize it. I’m going off the example of the Postman documentation ([Adding External Libraries in Postman | Postman Blog](https://blog.postman.com/adding-external-libraries-in-postman/)) **Pull a library from a CDN**. Here is the library’s instructions on how to use it. [bignumber.js API](https://mikemcl.github.io/bignumber.js/?utm_source=cdnjs&utm_medium=cdnjs_link&utm_campaign=cdnjs_library)  
If I remove the let x = new BigNumber(nnnnnnnnnn), it’s fine but, of course, it doesn’t solve my need for numbers longer than 53 bits.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/1/018fac7204ab13f36b719186aab213863ea49a1b.png)

---

<div class="post-metadata">

**Author:** ![udit](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/udit/32/5056_2.png) [@udit](https://community.postman.com/u/udit)\
**Post date:** [July 19, 2024, 6:36am UTC](https://community.postman.com/t/importing-external-libraries-from-cdn-using-postman/64270/2 "2024-07-19T06:36:08Z")

</div>

@G-Laser I noticed that `bignumber.js` sets the `BigNumber` constructor on `this`. So, `this.BigNumber` might work for you.

I also verified this using the following snippet:

```js
eval((await pm.sendRequest('https://cdn.jsdelivr.net/npm/bignumber.js@9.1.2/bignumber.min.js')).text());
const { BigNumber } = this.BigNumber;

let x = new BigNumber('-448207659001560319');
console.log(x); // "-448207659001560319"

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [August 18, 2024, 6:36am UTC](https://community.postman.com/t/importing-external-libraries-from-cdn-using-postman/64270/3 "2024-08-18T06:36:13Z")

</div>

Closed on August 18, 2024, 6:36am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
