Use npm i hanime.tv
.
Downloading a video
const { download } = require("hanime.tv")
download("url")
.then(console.log)
Performing a search.
const { search } = require("hanime.tv")
search("itadaki")
.then(v => v.videos)
Getting a specific video info.
const { getVideoInfo } = require("hanime.tv")
getVideoInfo(1315)
.then(console.log)
This package is still under development.