Axios request #180
@ -2,5 +2,5 @@ const axios = require("axios").default;
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
JSON: async (url = "", options) => await (await axios({url: url, ...options})).data,
|
JSON: async (url = "", options) => await (await axios({url: url, ...options})).data,
|
||||||
TEXT: 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
8314
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user