UNPKG
excute
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
Execute any code and get result on your machine.
github.com/egoist/excute
egoist/excute
excute
/
lib
/
api.js
16 lines
(13 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
const
fetch =
require
(
'axios'
)
module
.
exports
=
function
(
token
) {
const
instance = fetch.
create
({
baseURL
:
'https://run.glot.io/languages'
,
headers
: {
common
: {
Authorization
:
`Token
${token}
`
} } })
return
instance }