Including a javascript library

Hello,
For my project I need a library to sort, filter, and change order with some string contents, a list of articles. I found this library designed to be used with javascript : https://github.com/jonschlinkert/array-sort. Now how to convert the directive named require().

I think to use this shape , including the file named array-sort/index.js:
import (...) from (...)
But there is any class declaration into this one.

Otherwise what shal I have to do to rewrite the file ?

It’s on npm, so just

npm install array-sort --save

and (what I do)

import * as arraySort from 'array-sort';
...
arraySort([...], ...);

The game is on because it works :hugs: without rewriting the script.
Thanks a lot.