swc/crates/swc_bundler/tests/fixture/deno-8574/input/entry.ts
2021-11-09 20:42:49 +09:00

11 lines
300 B
TypeScript

import { request } from "https://cdn.skypack.dev/@octokit/request";
const { data } = await request('GET /repos/{owner}/{repo}/license', {
headers: {
authorization: `token ${Deno.env.get('GITHUB_TOKEN')}`,
},
owner: 'denoland',
repo: 'deno'
})
console.log(data.license.name);