MCPcopy Index your code
hub / github.com/Maccoder3/MAC-MD / getBuffer

Function getBuffer

lib/function.js:3–20  ·  view source on GitHub ↗
(url, options)

Source from the content-addressed store, hash-verified

1const axios = require('axios')
2
3const getBuffer = async(url, options) => {
4 try {
5 options ? options : {}
6 var res = await axios({
7 method: 'get',
8 url,
9 headers: {
10 'DNT': 1,
11 'Upgrade-Insecure-Request': 1
12 },
13 ...options,
14 responseType: 'arraybuffer'
15 })
16 return res.data
17 } catch (e) {
18 console.log(e)
19 }
20}
21
22const getGroupAdmins = (participants) => {
23 var admins = []

Callers 1

connectToWAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected