I am migrating working code from regular dweet.io to dweetpro.io
In the javascript API documentation for dweetpro, it says to initialize using
var dweetClient = require("dweetio-client");
var dweetio = new dweetClient("username", "password");
But "require" is not supported in client side javascript. What do I need to do?
For client-side usage, you'd need to use a 3rd party package in order to require packages the same way you would in node. You can take a look at requirejs or browserify.
Another way is to use this package, not sure if this is the same package that you mentioned in your question, but you can use it client-side.
Update: According to dweet.io, this is the official javascript package if you want to use it client-side