@vot.js/node
v3.2.2
Published
package for runtimes
Maintainers
Readme
@vot.js/node
JS Runtimes support package for vot.js
Usage
import VOTClient from "@vot.js/node";
import { getVideoData } from "@vot.js/node/utils/videoData";
const client = new VOTClient();
const videoData = await getVideoData("https://youtu.be/LK6nLR1bzpI");
const result = await client.translateVideo({ videoData });Proxying via vot-worker:
import { VOTClient } from "@vot.js/node";
import { VOTNextWorkerProvider } from "@vot.js/core/providers/votworker";
const client = new VOTClient({
host: "vot-worker.toil.cc",
provider: VOTNextWorkerProvider,
});You can see more code examples here
Install
To install:
bun install @vot.js/node