bytex-sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -2
- package/postinstall.js +21 -0
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bytex-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"postinstall": "node postinstall.js"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"chalk": "^5.3.0"
|
|
8
12
|
},
|
|
9
13
|
"keywords": [],
|
|
10
14
|
"author": "",
|
|
11
15
|
"license": "ISC",
|
|
12
16
|
"type": "module"
|
|
13
17
|
}
|
|
18
|
+
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
|
|
3
|
+
console.log('');
|
|
4
|
+
console.log(chalk.blue.bold('========================================='));
|
|
5
|
+
console.log(chalk.cyan.bold(' 🚀 Successfully installed ByteX SDK!'));
|
|
6
|
+
console.log(chalk.blue.bold('========================================='));
|
|
7
|
+
console.log('');
|
|
8
|
+
console.log(chalk.white('Get started by importing the SDK into your project:'));
|
|
9
|
+
console.log('');
|
|
10
|
+
console.log(chalk.gray(' // Initialize ByteX'));
|
|
11
|
+
console.log(chalk.green(" import { BytexCloud } from 'bytex-sdk';"));
|
|
12
|
+
console.log(chalk.green(" const bytex = new BytexCloud({ apiKey: 'YOUR_API_KEY' });"));
|
|
13
|
+
console.log('');
|
|
14
|
+
console.log(chalk.gray(' // Example: Uploading a file'));
|
|
15
|
+
console.log(chalk.green(" await bytex.upload('document.pdf', fileData);"));
|
|
16
|
+
console.log('');
|
|
17
|
+
console.log(chalk.white('Need an API key? You can generate one via CLI:'));
|
|
18
|
+
console.log(chalk.cyan(' npx bytex-cli init'));
|
|
19
|
+
console.log('');
|
|
20
|
+
console.log(chalk.gray('For full SDK documentation, visit: https://bytex.work/docs'));
|
|
21
|
+
console.log('');
|