mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
11 lines
300 B
TypeScript
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); |