const Brainly = require("brainly-scraper-ts")
Brainly.getData("kenapa manusia bernafas?").then(res => console.log(res))
C:\Users\RELFAIZ\Music\brainly>node .
C:\Users\RELFAIZ\Music\brainly\index.js:3
Brainly.getData("kenapa manusia bernafas?").then(res => console.log(res))
^
TypeError: Brainly.getData is not a function
at Object.<anonymous> (C:\Users\RELFAIZ\Music\brainly\index.js:3:9)
←[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m