how to use packages from 'works on workers'
# workers-help
i
I want to use a module from this page https://workers.cloudflare.com/works in my worker, how do I do ?
I need to use google api, how can i do that
z
Which one do you want to use? You will likely need to find the package on npm and then follow the instructions there.
Also note that that list is full of spam and not really maintained.
i
hi, i need to use this package: https://www.npmjs.com/package/googleapis, i alreafy submited it and it appeared on the page, but there is no instructions on the page, or i didnt find them
z
Just submitting it to that page will not make it work with workers. It seems like this library is really made for nodejs and uses some nodejs specific libraries. You can try using nodejs compatibility mode (https://developers.cloudflare.com/workers/runtime-apis/nodejs/#nodejs-compatibility). If that doesn't work, you'll have to look for another library.
i
okay thank, but i need to authenticate an app, so if it doesnt work, it doesnt work.
2 Views