Skip to content

Commit 7e8f769

Browse files
authored
feat(chore): add automatic README generation for npm packages (#2541)
1 parent 95e31a5 commit 7e8f769

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+4309
-1
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# @scaleway/sdk-account
2+
3+
[![npm version](https://img.shields.io/npm/v/@scaleway/sdk-account.svg)](https://www.npmjs.com/package/@scaleway/sdk-account)
4+
[![npm downloads](https://img.shields.io/npm/dm/@scaleway/sdk-account.svg)](https://www.npmjs.com/package/@scaleway/sdk-account)
5+
[![license](https://img.shields.io/npm/l/@scaleway/sdk-account.svg)](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE)
6+
7+
Scaleway SDK for Account API.
8+
9+
> **Note**
10+
> This is an automatically generated package that is part of the [Scaleway SDK for JavaScript](https://github.com/scaleway/scaleway-sdk-js).
11+
12+
## Installation
13+
14+
```bash
15+
npm install @scaleway/sdk-account @scaleway/sdk-client
16+
```
17+
18+
or with pnpm:
19+
20+
```bash
21+
pnpm add @scaleway/sdk-account @scaleway/sdk-client
22+
```
23+
24+
or with yarn:
25+
26+
```bash
27+
yarn add @scaleway/sdk-account @scaleway/sdk-client
28+
```
29+
30+
## Getting Started
31+
32+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
33+
34+
### Basic Usage
35+
36+
```typescript
37+
import { createClient } from '@scaleway/sdk-client'
38+
import { Account } from '@scaleway/sdk-account'
39+
40+
const client = createClient({
41+
accessKey: 'SCWXXXXXXXXXXXXXXXXX',
42+
secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
43+
defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
44+
defaultRegion: 'fr-par',
45+
defaultZone: 'fr-par-1',
46+
})
47+
48+
const api = new Account.v1.API(client)
49+
50+
// Use the API
51+
// Example: await api.listServers()
52+
```
53+
54+
### Using Configuration Loader
55+
56+
For a simpler setup, you can load credentials from the configuration file or environment variables:
57+
58+
```typescript
59+
import { createClient } from '@scaleway/sdk-client'
60+
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
61+
import { Account } from '@scaleway/sdk-account'
62+
63+
const profile = loadProfileFromConfigurationFile()
64+
const client = createClient(profile)
65+
const api = new Account.v1.API(client)
66+
```
67+
68+
## Documentation
69+
70+
- 📚 [Scaleway SDK Reference Documentation](https://scaleway.github.io/scaleway-sdk-js)
71+
- 🌐 [Scaleway Account API Documentation](https://www.scaleway.com/en/developers/api/account/)
72+
- 📖 [Main Repository](https://github.com/scaleway/scaleway-sdk-js)
73+
- 💡 [Example Projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
74+
75+
## Features
76+
77+
- ✅ Full TypeScript support with complete type definitions
78+
- ✅ Promise-based API
79+
- ✅ Automatic pagination helpers
80+
- ✅ Built-in error handling
81+
- ✅ Compatible with Node.js ≥ 20
82+
83+
## Support
84+
85+
We love feedback! Feel free to reach us on:
86+
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
87+
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
88+
89+
## Contributing
90+
91+
This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read [CONTRIBUTING.md](https://github.com/scaleway/scaleway-sdk-js/blob/master/CONTRIBUTING.md).
92+
93+
## License
94+
95+
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
96+

packages_generated/account/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Scaleway SDK account",
55
"license": "Apache-2.0",
66
"files": [
7+
"README.md",
78
"dist"
89
],
910
"type": "module",
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# @scaleway/sdk-applesilicon
2+
3+
[![npm version](https://img.shields.io/npm/v/@scaleway/sdk-applesilicon.svg)](https://www.npmjs.com/package/@scaleway/sdk-applesilicon)
4+
[![npm downloads](https://img.shields.io/npm/dm/@scaleway/sdk-applesilicon.svg)](https://www.npmjs.com/package/@scaleway/sdk-applesilicon)
5+
[![license](https://img.shields.io/npm/l/@scaleway/sdk-applesilicon.svg)](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE)
6+
7+
Scaleway SDK for Applesilicon API.
8+
9+
> **Note**
10+
> This is an automatically generated package that is part of the [Scaleway SDK for JavaScript](https://github.com/scaleway/scaleway-sdk-js).
11+
12+
## Installation
13+
14+
```bash
15+
npm install @scaleway/sdk-applesilicon @scaleway/sdk-client
16+
```
17+
18+
or with pnpm:
19+
20+
```bash
21+
pnpm add @scaleway/sdk-applesilicon @scaleway/sdk-client
22+
```
23+
24+
or with yarn:
25+
26+
```bash
27+
yarn add @scaleway/sdk-applesilicon @scaleway/sdk-client
28+
```
29+
30+
## Getting Started
31+
32+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
33+
34+
### Basic Usage
35+
36+
```typescript
37+
import { createClient } from '@scaleway/sdk-client'
38+
import { Applesilicon } from '@scaleway/sdk-applesilicon'
39+
40+
const client = createClient({
41+
accessKey: 'SCWXXXXXXXXXXXXXXXXX',
42+
secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
43+
defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
44+
defaultRegion: 'fr-par',
45+
defaultZone: 'fr-par-1',
46+
})
47+
48+
const api = new Applesilicon.v1.API(client)
49+
50+
// Use the API
51+
// Example: await api.listServers()
52+
```
53+
54+
### Using Configuration Loader
55+
56+
For a simpler setup, you can load credentials from the configuration file or environment variables:
57+
58+
```typescript
59+
import { createClient } from '@scaleway/sdk-client'
60+
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
61+
import { Applesilicon } from '@scaleway/sdk-applesilicon'
62+
63+
const profile = loadProfileFromConfigurationFile()
64+
const client = createClient(profile)
65+
const api = new Applesilicon.v1.API(client)
66+
```
67+
68+
## Documentation
69+
70+
- 📚 [Scaleway SDK Reference Documentation](https://scaleway.github.io/scaleway-sdk-js)
71+
- 🌐 [Scaleway Applesilicon API Documentation](https://www.scaleway.com/en/developers/api/applesilicon/)
72+
- 📖 [Main Repository](https://github.com/scaleway/scaleway-sdk-js)
73+
- 💡 [Example Projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
74+
75+
## Features
76+
77+
- ✅ Full TypeScript support with complete type definitions
78+
- ✅ Promise-based API
79+
- ✅ Automatic pagination helpers
80+
- ✅ Built-in error handling
81+
- ✅ Compatible with Node.js ≥ 20
82+
83+
## Support
84+
85+
We love feedback! Feel free to reach us on:
86+
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
87+
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
88+
89+
## Contributing
90+
91+
This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read [CONTRIBUTING.md](https://github.com/scaleway/scaleway-sdk-js/blob/master/CONTRIBUTING.md).
92+
93+
## License
94+
95+
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
96+

packages_generated/applesilicon/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Scaleway SDK applesilicon",
55
"license": "Apache-2.0",
66
"files": [
7+
"README.md",
78
"dist"
89
],
910
"type": "module",
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# @scaleway/sdk-audit-trail
2+
3+
[![npm version](https://img.shields.io/npm/v/@scaleway/sdk-audit-trail.svg)](https://www.npmjs.com/package/@scaleway/sdk-audit-trail)
4+
[![npm downloads](https://img.shields.io/npm/dm/@scaleway/sdk-audit-trail.svg)](https://www.npmjs.com/package/@scaleway/sdk-audit-trail)
5+
[![license](https://img.shields.io/npm/l/@scaleway/sdk-audit-trail.svg)](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE)
6+
7+
Scaleway SDK for Audit Trail API.
8+
9+
> **Note**
10+
> This is an automatically generated package that is part of the [Scaleway SDK for JavaScript](https://github.com/scaleway/scaleway-sdk-js).
11+
12+
## Installation
13+
14+
```bash
15+
npm install @scaleway/sdk-audit-trail @scaleway/sdk-client
16+
```
17+
18+
or with pnpm:
19+
20+
```bash
21+
pnpm add @scaleway/sdk-audit-trail @scaleway/sdk-client
22+
```
23+
24+
or with yarn:
25+
26+
```bash
27+
yarn add @scaleway/sdk-audit-trail @scaleway/sdk-client
28+
```
29+
30+
## Getting Started
31+
32+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
33+
34+
### Basic Usage
35+
36+
```typescript
37+
import { createClient } from '@scaleway/sdk-client'
38+
import { AuditTrail } from '@scaleway/sdk-audit-trail'
39+
40+
const client = createClient({
41+
accessKey: 'SCWXXXXXXXXXXXXXXXXX',
42+
secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
43+
defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
44+
defaultRegion: 'fr-par',
45+
defaultZone: 'fr-par-1',
46+
})
47+
48+
const api = new AuditTrail.v1.API(client)
49+
50+
// Use the API
51+
// Example: await api.listServers()
52+
```
53+
54+
### Using Configuration Loader
55+
56+
For a simpler setup, you can load credentials from the configuration file or environment variables:
57+
58+
```typescript
59+
import { createClient } from '@scaleway/sdk-client'
60+
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
61+
import { AuditTrail } from '@scaleway/sdk-audit-trail'
62+
63+
const profile = loadProfileFromConfigurationFile()
64+
const client = createClient(profile)
65+
const api = new AuditTrail.v1.API(client)
66+
```
67+
68+
## Documentation
69+
70+
- 📚 [Scaleway SDK Reference Documentation](https://scaleway.github.io/scaleway-sdk-js)
71+
- 🌐 [Scaleway Audit Trail API Documentation](https://www.scaleway.com/en/developers/api/audit-trail/)
72+
- 📖 [Main Repository](https://github.com/scaleway/scaleway-sdk-js)
73+
- 💡 [Example Projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
74+
75+
## Features
76+
77+
- ✅ Full TypeScript support with complete type definitions
78+
- ✅ Promise-based API
79+
- ✅ Automatic pagination helpers
80+
- ✅ Built-in error handling
81+
- ✅ Compatible with Node.js ≥ 20
82+
83+
## Support
84+
85+
We love feedback! Feel free to reach us on:
86+
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
87+
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
88+
89+
## Contributing
90+
91+
This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read [CONTRIBUTING.md](https://github.com/scaleway/scaleway-sdk-js/blob/master/CONTRIBUTING.md).
92+
93+
## License
94+
95+
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
96+

packages_generated/audit_trail/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Scaleway SDK audit-trail",
55
"license": "Apache-2.0",
66
"files": [
7+
"README.md",
78
"dist"
89
],
910
"type": "module",

0 commit comments

Comments
 (0)