Gathering detailed insights and metrics for @suin/esa-api
Gathering detailed insights and metrics for @suin/esa-api
Gathering detailed insights and metrics for @suin/esa-api
Gathering detailed insights and metrics for @suin/esa-api
npm install @suin/esa-api
Typescript
Module System
Node Version
NPM Version
76.4
Supply Chain
98.3
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.6%)
Shell (0.4%)
Total Downloads
7,814
Last Day
1
Last Week
191
Last Month
1,149
Last Year
4,370
8 Stars
36 Commits
3 Watching
10 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
4.0.1
Package Id
@suin/esa-api@4.0.1
Unpacked Size
1.30 MB
Size
109.28 kB
File Count
298
NPM Version
10.1.0
Node Version
20.7.0
Publised On
20 Sept 2023
Cumulative downloads
Total Downloads
Last day
-93.8%
1
Compared to previous day
Last week
-20.7%
191
Compared to previous week
Last month
-35.6%
1,149
Compared to previous month
Last year
402.9%
4,370
Compared to previous year
2
esa.io API のクライアントライブラリ。
1yarn add @suin/esa-api 2# or 3npm install @suin/esa-api
基本的な用法:
1import { createClient } from "@suin/esa-api"; 2 3const teamName = "your_team_name"; 4 5const client = createClient({ 6 token: process.env.ESA_TOKEN, // アクセストーン 7}); 8 9{ 10 // 記事一覧を取得する 11 const { 12 data: { posts }, 13 } = await client.getPosts({ teamName }); 14} 15 16{ 17 // 指定した記事を取得する 18 const { data: post } = await client.getPost({ teamName, postNumber: 1 }); 19} 20 21{ 22 // 記事を新規投稿する 23 const { data: createdPost } = await client.createPost({ 24 teamName, 25 post: { 26 name: "hi!", 27 body_md: "# Getting Started\n", 28 tags: ["api", "dev"], 29 category: "dev/2015/05/10", 30 wip: false, 31 message: "Add Getting Started section", 32 }, 33 }); 34} 35 36{ 37 // 指定した記事を編集する 38 const { data: updatedPost } = await client.updatePost({ 39 teamName, 40 postNumber: 1, 41 updatePostBody: { 42 post: { 43 wip: false, 44 message: "Ship it!", 45 }, 46 }, 47 }); 48}
複雑なクエリの例:
1import { createClient } from "@suin/esa-api"; 2 3const teamName = "your_team_name"; 4 5const client = createClient({ 6 token: process.env.ESA_TOKEN, 7}); 8 9// 細かい条件を設定して記事一覧を取得する 10const response = await client.getPosts({ 11 teamName, 12 q: "wip:false", 13 include: ["comments", "comments.stargazers", "stargazers"], 14 sort: "updated", 15 order: "desc", 16 per_page: 100, 17 page: 1, 18}); 19 20// 結果からは様々な付随情報が得られます: 21// 1. 記事一覧 22const { posts } = response.data; 23// 2. 利用制限 24const { limit, remaining, reset } = response.ratelimit; 25// 3. ページネーション 26const { prev_page, next_page, page, per_page, max_per_page, total_count } = 27 response.data;
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More