vidup 1.0.19 → 1.0.20

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/dist/bin/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as version, n as stripVideoMetadataInDirectory, r as setLogger, t as syncVideoInDirectory } from "../lib-D5PZ18VU.js";
2
+ import { i as version, n as stripVideoMetadataInDirectory, r as setLogger, t as syncVideoInDirectory } from "../lib-Ddx3eQbF.js";
3
3
  import { log, setDefaultLogOptions } from "lognow";
4
4
  import path from "node:path";
5
5
  import prettyMilliseconds from "pretty-ms";
package/dist/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as stripVideoMetadataInDirectory, r as setLogger, t as syncVideoInDirectory } from "../lib-D5PZ18VU.js";
1
+ import { n as stripVideoMetadataInDirectory, r as setLogger, t as syncVideoInDirectory } from "../lib-Ddx3eQbF.js";
2
2
 
3
3
  export { setLogger, stripVideoMetadataInDirectory, syncVideoInDirectory };
@@ -11,7 +11,7 @@ import { oraPromise } from "ora";
11
11
 
12
12
  //#region package.json
13
13
  var name = "vidup";
14
- var version = "1.0.19";
14
+ var version = "1.0.20";
15
15
 
16
16
  //#endregion
17
17
  //#region src/lib/log.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vidup",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Synchronize a local directory of video files to remote streaming services.",
5
5
  "keywords": [
6
6
  "bunnycdn-stream",
@@ -55,19 +55,20 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@arethetypeswrong/core": "^0.18.5",
58
- "@kitschpatrol/shared-config": "^8.9.0",
58
+ "@kitschpatrol/shared-config": "^8.12.1",
59
59
  "@types/node": "~24.13.4",
60
- "brewpub": "^0.3.0",
60
+ "brewpub": "^0.5.0",
61
61
  "bumpp": "^12.3.0",
62
- "mdat-plugin-cli-help": "^3.2.0",
63
- "publint": "^0.3.24",
62
+ "mdat-plugin-cli-help": "^3.4.0",
63
+ "publint": "^0.3.25",
64
64
  "shx": "^0.4.0",
65
+ "skills": "^1.7.0",
65
66
  "tsdown": "^0.23.0",
66
67
  "typescript": "^6.0.3",
67
- "vitest": "^5.0.1"
68
+ "vitest": "^5.0.3"
68
69
  },
69
70
  "engines": {
70
- "node": ">=24.16.0"
71
+ "node": "^24.16.0 || >=26.3.0"
71
72
  },
72
73
  "scripts": {
73
74
  "build": "tsdown",
package/readme.md CHANGED
@@ -9,6 +9,7 @@
9
9
  [![NPM Package vidup](https://img.shields.io/npm/v/vidup.svg)](https://www.npmjs.com/package/vidup)
10
10
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/license/mit)
11
11
  [![CI](https://github.com/kitschpatrol/vidup/actions/workflows/ci.yml/badge.svg)](https://github.com/kitschpatrol/vidup/actions/workflows/ci.yml)
12
+ [![Homebrew](https://img.shields.io/badge/Homebrew-kitschpatrol%2Ftap%2Fvidup-FBB040?logo=homebrew&logoColor=white)](https://github.com/kitschpatrol/homebrew-tap/blob/HEAD/Formula/vidup.rb)
12
13
 
13
14
  <!-- /badges -->
14
15
 
@@ -31,38 +32,54 @@ Currently, only Bunny.net's [Bunny Stream](https://bunny.net/stream/) service is
31
32
 
32
33
  ## Getting started
33
34
 
35
+ <!-- dependencies -->
36
+
34
37
  ### Dependencies
35
38
 
36
- The vidup CLI tool requires Node 20.9.0+. The exported APIs are ESM-only and share the Node 20.9.0+ requirement. Vidup is implemented in TypeScript and bundles type definitions.
39
+ - [Node.js](https://nodejs.org/) 24.16.0 or newer (specifically `^24.16.0 || >=26.3.0`)
40
+
41
+ <!-- /dependencies -->
42
+
43
+ The exported APIs are ESM-only. Vidup is implemented in TypeScript and bundles type definitions.
37
44
 
38
45
  A [Bunny Stream](https://bunny.net/stream/) account, API key, and library ID are required.
39
46
 
47
+ <!-- install -->
48
+
40
49
  ### Installation
41
50
 
42
- Invoke directly:
51
+ There are several ways to install vidup depending on how you're planning to use it:
52
+
53
+ #### CLI
54
+
55
+ Run it once without installing:
43
56
 
44
57
  ```sh
45
58
  npx vidup
46
59
  ```
47
60
 
48
- Or, install locally to access the CLI commands in a single project or to import the provided TypeScript APIs:
61
+ Or install it globally with Homebrew:
49
62
 
50
63
  ```sh
51
- npm install vidup
64
+ brew install kitschpatrol/tap/vidup
52
65
  ```
53
66
 
54
- Or, install globally for access across your system with either Homebrew or npm:
67
+ Or install it globally with npm:
55
68
 
56
69
  ```sh
57
- brew install kitschpatrol/tap/vidup
70
+ npm install --global vidup
58
71
  ```
59
72
 
60
- _or_
73
+ #### Library
74
+
75
+ Add it to your project to import the TypeScript API. This also puts the `vidup` CLI on your project's path:
61
76
 
62
77
  ```sh
63
- npm install --global vidup
78
+ npm install vidup
64
79
  ```
65
80
 
81
+ <!-- /install -->
82
+
66
83
  ## Usage
67
84
 
68
85
  Vidup treats local videos' file names as keys, and will look for a file with the same name / title on the remote streaming service.
@@ -76,11 +93,13 @@ Vidup tracks the content hash of each local video. If you replace a local video
76
93
 
77
94
  Any videos present on the remote service that aren't matched to a video file in the local folder **will be deleted from the remote service**.
78
95
 
79
- ### CLI
96
+ ### CLI usage
80
97
 
81
98
  <!-- cli-help -->
82
99
 
83
- #### Command: `vidup`
100
+ #### Commands
101
+
102
+ ##### Command: `vidup`
84
103
 
85
104
  Run a vidup command.
86
105
 
@@ -100,7 +119,7 @@ vidup [command]
100
119
 
101
120
  _See the sections below for more information on each subcommand._
102
121
 
103
- #### Subcommand: `vidup sync`
122
+ ##### Subcommand: `vidup sync`
104
123
 
105
124
  Synchronize a remote video streaming service to mirror the contents of a local directory. Warning: This command will irrevocably delete remote videos that are not present in the local directory.
106
125
 
@@ -153,7 +172,7 @@ vidup . --json --dry-run --service bunny --key <BUNNY_API_KEY> --library <BUNNY_
153
172
 
154
173
  The JSON version of the output provides some extra info.
155
174
 
156
- ### Library
175
+ ### Library usage
157
176
 
158
177
  #### API
159
178