首页 > 解决方案 > 整个网站的 fs.createWriteStream 替代品?

问题描述

是否有替代方法fs.createWriteStream可以检查整个页面而不是网站上的文件/目录?因为 this:fs.createWriteStream('https://discordapp.com/channels/000/000', function(err, data) {返回没有找到目录或文件,但我希望能够在页面上搜索单词。

https.get('https://discordapp.com/channels/000/000', function (err, data) { 

返回:

/home/pi/Desktop/Discord_bots/my-bot/index.js:214
            if (err) throw err;
                     ^
[object Object]

标签: javascriptnode.js

解决方案


推荐阅读