spoclip-kit 1.0.5 → 1.0.7
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/README.md +15 -51
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,38 +13,17 @@ npm install spoclip-kit
|
|
|
13
13
|
### Import specific modules
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
17
|
-
import { add, multiply } from '@spoclip-kit/math';
|
|
16
|
+
import { getVideoDownloadCost } from 'spoclip-kit/libs';
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const { cost, isPlusFree } = getVideoDownloadCost({
|
|
19
|
+
ticketCode: 'PLUS',
|
|
20
|
+
duration: 1000, // in milli seconds
|
|
21
|
+
isFullTime: false,
|
|
22
|
+
quality: '4K',
|
|
23
|
+
remainingFreeDownloads: 20,
|
|
24
|
+
});
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
### Import everything
|
|
28
|
-
|
|
29
|
-
```typescript
|
|
30
|
-
import { test, add, multiply } from 'spoclip-kit';
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Available Modules
|
|
34
|
-
|
|
35
|
-
### Utils (`@spoclip-kit/utils`)
|
|
36
|
-
|
|
37
|
-
- `test()` - Logs 'test' to console
|
|
38
|
-
|
|
39
|
-
### Math (`@spoclip-kit/math`)
|
|
40
|
-
|
|
41
|
-
- `add(a, b)` - Add two numbers
|
|
42
|
-
- `subtract(a, b)` - Subtract two numbers
|
|
43
|
-
- `multiply(a, b)` - Multiply two numbers
|
|
44
|
-
- `divide(a, b)` - Divide two numbers
|
|
45
|
-
- `PI` - Math.PI constant
|
|
46
|
-
- `E` - Math.E constant
|
|
47
|
-
|
|
48
27
|
## Development
|
|
49
28
|
|
|
50
29
|
### Setup
|
|
@@ -53,37 +32,22 @@ import { test, add, multiply } from 'spoclip-kit';
|
|
|
53
32
|
npm install
|
|
54
33
|
```
|
|
55
34
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
npm run build
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Test
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
npm run test
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Lint
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
npm run lint
|
|
72
|
-
```
|
|
35
|
+
## Publishing
|
|
73
36
|
|
|
74
|
-
|
|
37
|
+
spoclip 계정으로 로그인 후
|
|
75
38
|
|
|
76
39
|
```bash
|
|
77
|
-
npm run
|
|
40
|
+
npm run login
|
|
78
41
|
```
|
|
79
42
|
|
|
80
|
-
## Publishing
|
|
81
|
-
|
|
82
43
|
```bash
|
|
83
|
-
npm
|
|
44
|
+
npm run release:patch
|
|
45
|
+
npm run release:minor
|
|
46
|
+
npm run release:major
|
|
84
47
|
```
|
|
85
48
|
|
|
86
49
|
## License
|
|
87
50
|
|
|
88
51
|
MIT
|
|
52
|
+
|
|
89
53
|
# spoclip-kit
|