Reference documentation for Jahuty's Node.js SDK.
This library requires Node 14.
Install the package with:
The package needs to be configured with your API key before use, ideally once during startup. Then, you can use the
Snippet.render() method, which returns a
Promise, to render a snippet:
You can pass parameters into your snippet using the options hash and the
The parameters above would be equivalent to assigning the variable below in your snippet:
If you don’t set your API key before calling
Error will be thrown. If Jahuty’s API returns any status code other than
NotOk exception will be thrown:
If you’d like to see the SDK in action, see jahuty/jahuty-node-example.
Bug reports and pull requests are welcome on GitHub.
Find a typo? Something is wrong in this documentation? Fork and edit it!