feat: 添加 Repo 和 User 模块,增强 CNBCore 功能
This commit is contained in:
10
test/repo.ts
Normal file
10
test/repo.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Repo } from "../src/repo";
|
||||
|
||||
import { token, showMore, cookie } from "./common.ts";
|
||||
|
||||
const repo = new Repo({ group: "kevisual/demo", token: token, cookie: cookie });
|
||||
|
||||
|
||||
const listRes = await repo.getRepoList({ page: 1, page_size: 10 });
|
||||
|
||||
console.log("listRes", showMore(listRes));
|
||||
Reference in New Issue
Block a user