@onepunya/doods-warp
v1.0.0
Published
doodstream downloader
Downloads
9
Readme
doods-wrapper
A nodejs wrapper for doods service
Usage
import doods from "module-name";
import { createReadStream } from "fs";
// Axios options
const opts = { responseType: "stream" };
const dod = await doods("https://doods.pro/d/3jauj7g67kga", opts);
if (dod.error) {
console.error(danil);
return;
}
// write the file to disk
dod.download().then((res) => {
res.data.pipe(createReadStream("danil-hot.mp4"));
});