Import keyword-extractor/Problems with bundle.run

Hello,
I have been trying to use the keyword-extractor library in my notebook. However, I was not able to suceed. I tried:

require("keyword-extractor") -> Invalid Module
require("https://bundle.run/keyword-extractor@0.0.21") -> Unable to load Module
require("https://unpkg.com/keyword-extractor@0.0.21/lib/keyword_extractor.js") -> Invalid Module

Is there anything else I can try to import this library?

Thanks!

PS: When I try to open https://bundle.run/keyword-extractor@0.0.21 in my browser, I get a 502 error. Could it be that the bundle service is down?

1 Like

The Module require debugger indicates that the following might work:

import('https://cdn.skypack.dev/keyword-extractor@0.0.21?min')

I don’t know anything about keyword-extractor, thought, so I did not check to see that the result functioned properly.

1 Like

Thanks! Did not know about this feature. Using this works.

1 Like