# Custom JS Keywords -\> import

**URL:** <https://forum.robotframework.org/t/custom-js-keywords-import/4888>\
**Category:** Browser\
**Created:** [31 October 2022 12:44 UTC](https://forum.robotframework.org/t/custom-js-keywords-import/4888 "2022-10-31T12:44:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomaspekarovic](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/tomaspekarovic/32/1368_2.png) [@tomaspekarovic](https://forum.robotframework.org/u/tomaspekarovic)\
**Post date:** [31 October 2022 12:44 UTC](https://forum.robotframework.org/t/custom-js-keywords-import/4888/1 "2022-10-31T12:44:53Z")

</div>

Hi again,

I’m looking for way how to use ‘external’ imports in custom JS library.  
I’m trying to do something like this:

```python
import { FileReader } from 'buffer';
async function fileReaderOwn(file_) {
  const reader = new FileReader()
  const x = reader.readAsDataURL(file_)
  return x
}

```

This is saved in `module.js` file, which I’m importing as JS library for Browser. Is there any way how to achieve usage of libraries?
