@source/cdn (1.0.0)
Published 2026-02-11 03:44:08 +00:00 by hibna
Installation
@source:registry=npm install @source/cdn@1.0.0"@source/cdn": "1.0.0"About this package
@source/cdn
Hibna CDN backend API'sini API key ile kullanmak icin JavaScript/TypeScript SDK.
Kurulum
npm install @source/cdn
Kullanim
import { CdnClient } from '@source/cdn';
const client = new CdnClient({
baseUrl: 'https://cdn.hibna.com.tr',
apiKey: '<API_KEY>',
});
const buckets = await client.listBuckets();
console.log(buckets);
Yayinlama (gits.hibna.com.tr)
- Hibna owner registry URL:
https://gits.hibna.com.tr/api/packages/hibna/npm/
- Auth bilgisini manuel girin (token veya mail/sifre):
npm login --registry https://gits.hibna.com.tr/api/packages/hibna/npm/ --scope=@source
- Publish komutunu calistirin:
PowerShell:
npm run sdk:publish:gits
Farkli owner registry gerekiyorsa:
$env:SDK_NPM_REGISTRY="https://gits.hibna.com.tr/api/packages/<owner>/npm/"
npm run sdk:publish:gits
Dry-run:
$env:SDK_NPM_DRY_RUN="true"
npm run sdk:publish:gits
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| typescript | ^5.7.3 |