Can Functions be Defined Inside a Single Pipedream Step in Node.js?

But then, at that point, we could just do this:

image.png

Although that’s much less convenient for less technical users who may not want (or know how) to setup an npm package.

I think we’ll try this approach for our libs :point_up_2:, and just pass the Pipedream app (Slack, etc.) as a parameter when necessary.

Less convenient & a bit more work… but it will work. :slightly_smiling_face:

And the package will have to be public, but that’s fine as the code itself will be pretty generic. No secret sauce, business logic, or credentials in there. :sweat_smile:

It’s somewhat de-coupling users from Pipedream though… which can be a good or bad thing, depending on the perspective.