@tacone/prosey 0.2.1 → 0.2.2
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/bin/prosey +66 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/bin/prosey
CHANGED
|
@@ -14004,10 +14004,75 @@ function debug(...args) {
|
|
|
14004
14004
|
return;
|
|
14005
14005
|
console.error(GRAY, ...args, RESET);
|
|
14006
14006
|
}
|
|
14007
|
+
// package.json
|
|
14008
|
+
var package_default = {
|
|
14009
|
+
name: "@tacone/prosey",
|
|
14010
|
+
version: "0.2.2",
|
|
14011
|
+
description: "Download YouTube video transcripts from the CLI",
|
|
14012
|
+
module: "src/index.ts",
|
|
14013
|
+
type: "module",
|
|
14014
|
+
bin: {
|
|
14015
|
+
prosey: "bin/prosey"
|
|
14016
|
+
},
|
|
14017
|
+
files: [
|
|
14018
|
+
"bin/",
|
|
14019
|
+
"src/",
|
|
14020
|
+
"package.json",
|
|
14021
|
+
"README.md",
|
|
14022
|
+
"LICENSE"
|
|
14023
|
+
],
|
|
14024
|
+
scripts: {
|
|
14025
|
+
start: "bun run src/index.ts",
|
|
14026
|
+
build: "bun build src/index.ts --target node --outfile bin/prosey",
|
|
14027
|
+
test: "bun test",
|
|
14028
|
+
typecheck: "tsc --noEmit",
|
|
14029
|
+
prettier: "prettier --write .",
|
|
14030
|
+
prepack: "bun run build",
|
|
14031
|
+
prepare: "husky || true"
|
|
14032
|
+
},
|
|
14033
|
+
"lint-staged": {
|
|
14034
|
+
"*": "prettier --write --ignore-unknown"
|
|
14035
|
+
},
|
|
14036
|
+
author: "tacone <tacone@gmail.com>",
|
|
14037
|
+
license: "MIT",
|
|
14038
|
+
repository: {
|
|
14039
|
+
type: "git",
|
|
14040
|
+
url: "git+https://github.com/tacone/prosey.git"
|
|
14041
|
+
},
|
|
14042
|
+
bugs: {
|
|
14043
|
+
url: "https://github.com/tacone/prosey/issues"
|
|
14044
|
+
},
|
|
14045
|
+
homepage: "https://github.com/tacone/prosey#readme",
|
|
14046
|
+
keywords: [
|
|
14047
|
+
"youtube",
|
|
14048
|
+
"transcript",
|
|
14049
|
+
"subtitles",
|
|
14050
|
+
"captions",
|
|
14051
|
+
"cli",
|
|
14052
|
+
"npx",
|
|
14053
|
+
"bun"
|
|
14054
|
+
],
|
|
14055
|
+
engines: {
|
|
14056
|
+
node: ">=20"
|
|
14057
|
+
},
|
|
14058
|
+
devDependencies: {
|
|
14059
|
+
"@types/bun": "latest",
|
|
14060
|
+
husky: "^9.1.7",
|
|
14061
|
+
"lint-staged": "^17.0.7",
|
|
14062
|
+
prettier: "^3.8.4"
|
|
14063
|
+
},
|
|
14064
|
+
peerDependencies: {
|
|
14065
|
+
typescript: "^5"
|
|
14066
|
+
},
|
|
14067
|
+
dependencies: {
|
|
14068
|
+
"js-toml": "^1.1.2",
|
|
14069
|
+
"youtube-transcript-plus": "^2.0.0"
|
|
14070
|
+
}
|
|
14071
|
+
};
|
|
14007
14072
|
|
|
14008
14073
|
// src/index.ts
|
|
14009
14074
|
var NAME2 = "prosey";
|
|
14010
|
-
var VERSION2 =
|
|
14075
|
+
var VERSION2 = package_default.version;
|
|
14011
14076
|
function help() {
|
|
14012
14077
|
return `${NAME2} v${VERSION2}
|
|
14013
14078
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -9,9 +9,10 @@ import type { ProseyConfig } from "./config";
|
|
|
9
9
|
import { summarize } from "./summarize";
|
|
10
10
|
import { cacheDir, readCache, writeCache, extractVideoId } from "./cache";
|
|
11
11
|
import { enableDebug, debug } from "./debug";
|
|
12
|
+
import pkg from "../package.json";
|
|
12
13
|
|
|
13
14
|
const NAME = "prosey";
|
|
14
|
-
const VERSION =
|
|
15
|
+
const VERSION = pkg.version;
|
|
15
16
|
|
|
16
17
|
function help(): string {
|
|
17
18
|
return `${NAME} v${VERSION}
|