DEV Community

Steven Rathbauer
Steven Rathbauer

Posted on

Published my first npm package!

As the title suggests, I published my very first npm package earlier this week!

This is something that has definitely been long overdue, and I should have been doing for years. I have so many random code things I have done to simplify or abstract processes or components but have just never committed the time to actually sharing it out to the world. Well, now I have!!!

I hope to continue this trend and publish more packages in the future, but in the meantime here is some info about the package:

@rathpc/zendesk-react

A minimal component based implementation to include Zendesk in your React application.

  • If you are using the Zendesk integration in your React application, you might find this useful. It essentially gives you a way to include the integration without explicitly needing to add the script yourself in an HTML file or template being passed into your bundler of choice.

  • This makes it a bit easier to consume and tweak usage based on environment.

Feel free to try it out and let me know if there is anything you want to see added to it or changed! I plan to add some more thorough typing of the zendeskApi function usage based on the Zendesk docs so it will be even easier to use and have auto completion!!!


Sidenote: This effort was definitely inspired by another package (react-zendesk) that is also available but it hasn't been maintained in quite some time. My intention was to build on that idea, update the logic to leverage newer React syntax and capabilities (16.8+) as well as write it purely in Typescript.

Top comments (0)