Gathering detailed insights and metrics for @modelpark/huggingface-hub-api
Gathering detailed insights and metrics for @modelpark/huggingface-hub-api
npm install @modelpark/huggingface-hub-api
Typescript
Module System
Node Version
NPM Version
69.2
Supply Chain
98.9
Quality
75.6
Maintenance
100
Vulnerability
100
License
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
1,000%
11
Compared to previous week
Last month
137.5%
19
Compared to previous month
Last year
-38.7%
939
Compared to previous year
Service
↳ default
• new default(accessToken?
, transformHeaders?
, baseUrl?
)
Name | Type | Default value |
---|---|---|
accessToken? | string | undefined |
transformHeaders | (headers : Headers ) => Headers | undefined |
baseUrl | string | 'https://huggingface.co/api' |
Service.constructor
• Optional
accessToken: string
Service.accessToken
• Readonly
baseUrl: string
= 'https://huggingface.co/api'
Service.baseUrl
• transformHeaders: (headers
: Headers
) => Headers
▸ (headers
): Headers
Name | Type |
---|---|
headers | Headers |
Headers
Service.transformHeaders
▸ CreateRepo(data
): ResponseType
<any
>
Name | Type |
---|---|
data | any |
ResponseType
<any
>
▸ DeleteRepo(data
): ResponseType
<any
>
Name | Type |
---|---|
data | any |
ResponseType
<any
>
▸ DeleteRequest(uri
, body
, params?
): Promise
<any
>
Name | Type |
---|---|
uri | string |
body | any |
params? | Params |
Promise
<any
>
Service.DeleteRequest
▸ Protected
GetData(response
): Promise
<{ data
: Promise
<unknown
> ; nextUrl
: undefined
| string
; total
: null
| string
}>
Name | Type |
---|---|
response | Response |
Promise
<{ data
: Promise
<unknown
> ; nextUrl
: undefined
| string
; total
: null
| string
}>
Service.GetData
▸ GetDataset(datasetId
, params?
): ResponseType
<Dataset
>
Name | Type |
---|---|
datasetId | string |
params? | Params |
ResponseType
<Dataset
>
▸ GetDatasetTagsByType(): ResponseType
<Tag
[]>
ResponseType
<Tag
[]>
▸ GetDatasets(params?
): ResponseType
<Dataset
[]>
Name | Type |
---|---|
params? | Params |
ResponseType
<Dataset
[]>
▸ Protected
GetHeaders(): Headers
Headers
Service.GetHeaders
▸ GetMetrics(): ResponseType
<Metric
[]>
ResponseType
<Metric
[]>
▸ GetModel(modelId
, params?
): ResponseType
<Model
>
Name | Type |
---|---|
modelId | string |
params? | Params |
ResponseType
<Model
>
▸ GetModelTagsByType(): ResponseType
<Tag
[]>
ResponseType
<Tag
[]>
▸ GetModels(params?
): ResponseType
<Model
[]>
Name | Type |
---|---|
params? | Params |
ResponseType
<Model
[]>
▸ GetRequest(uri
, params?
): Promise
<any
>
Name | Type |
---|---|
uri | string |
params? | Params |
Promise
<any
>
Service.GetRequest
▸ GetSpace(spaceId
, params?
): ResponseType
<Space
>
Name | Type |
---|---|
spaceId | string |
params? | Params |
ResponseType
<Space
>
▸ GetSpaces(params?
): ResponseType
<Space
[]>
Name | Type |
---|---|
params? | Params |
ResponseType
<Space
[]>
▸ MoveRepo(data
): ResponseType
<any
>
Name | Type |
---|---|
data | any |
ResponseType
<any
>
▸ PatchRequest(uri
, body
, params?
): Promise
<any
>
Name | Type |
---|---|
uri | string |
body | any |
params? | Params |
Promise
<any
>
Service.PatchRequest
▸ PostRequest(uri
, body
, params?
): Promise
<any
>
Name | Type |
---|---|
uri | string |
body | any |
params? | Params |
Promise
<any
>
Service.PostRequest
▸ PutRequest(uri
, body
, params?
): Promise
<any
>
Name | Type |
---|---|
uri | string |
body | any |
params? | Params |
Promise
<any
>
Service.PutRequest
▸ UpdateRepoVisibility(type
, repo_id
, data
): ResponseType
<any
>
Name | Type |
---|---|
type | string |
repo_id | string |
data | Object |
data.private | any |
ResponseType
<any
>
▸ UploadFile(type
, repo_id
, revision
, path_in_repo
, data
): ResponseType
<any
>
Name | Type |
---|---|
type | string |
repo_id | string |
revision | any |
path_in_repo | string |
data | any |
ResponseType
<any
>
▸ WhoAmI(): ResponseType
<User
>
ResponseType
<User
>
▸ Protected
getUri(uri
, params?
): string
Name | Type |
---|---|
uri | string |
params | Params |
string
Service.getUri
No vulnerabilities found.
No security vulnerabilities found.