NPM for the existing-official javascript library?

there is an existing official-repo for your javascript api (https://github.com/PagerDuty/PDJS) and it could be published to npm with some tweaks to allow any usage of it. there is even an open ticket for it :slight_smile: (https://github.com/PagerDuty/pdjs/issues/18)

what do you think?
i’m trying to avoid using a community addition…

thanks

I believe @smcallister is working on this :slight_smile:

Yep! This is in flight. I’m in the process of creating accounts and preparing the library to be published as an npm package. The library was originally built as a tool for client side JavaScript, so still need to assess the level of effort it would take it make it useful for Node.

Just curious, @benyitzhaki, are you looking to use this client side or in Node?

If you need a Node library right now, I recommend https://github.com/kmart2234/node-pagerduty

1 Like

Awesome! Looking for it. I need it for a Node project.
can i get notified somehow when it gets released?

thanks for the fast response

Hi @benyitzhaki, I’ll be sure to keep you informed of updates. However, looking at the PDJS code, it’s built for client side JavaScript. It’s structure extends off the window object, which is only available in the browser. As you mentioned, totally possible to change, but it will take some time.

Is there a feature you’re looking for that is not currently available in the https://github.com/kmart2234/node-pagerduty library?

@smcallister Gotcha. I’m currently working with kmart’s package but was hoping to replace it with official repo

Makes sense, @benyitzhaki . I’ve been in contact with the maintainer of that repo, and he’s been great to work with. Let me know if you have issues with the library, and i’ll see if I can help get the necessary fixes pushed through.

2 Likes

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