Axios request #180

Closed
Sirherobrine23 wants to merge 5 commits from Axios into main
4 changed files with 122 additions and 38 deletions
Showing only changes of commit 2f0bd4ce53 - Show all commits

View File

@ -2,5 +2,5 @@ const axios = require("axios").default;
module.exports = {
JSON: async (url = "", options) => await (await axios({url: url, ...options})).data,
TEXT: async (url = "", options) => await (await axios({url: url, ...options})).data,
BUFFER: async (url = "", options) => Buffer.from(await (await axios({url, ...options, responseType: "ArrayBuffer"})).data),
BUFFER: async (url = "", options) => Buffer.from((await axios({url: url, ...options, responseType: "arraybuffer"})).data)
}

8314
package-lock.json generated

File diff suppressed because it is too large Load Diff