fast-dirpy 0.1.1 → 0.1.3
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 +4 -0
- package/dist/cli.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,6 +23,10 @@ npm i fast-dirpy -g
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
25
|
### Config file
|
|
26
|
+
|
|
27
|
+
> [!IMPORTANT]
|
|
28
|
+
> `fast-dirpy.config` can be `fast-dirpy.config.['ts', 'mts', 'cts', 'js', 'mjs', 'cjs']`
|
|
29
|
+
|
|
26
30
|
You can create a `fast-dirpy.config.ts` file in your library root or same location in command line.
|
|
27
31
|
|
|
28
32
|
```ts
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as d,b as a}from"./chunk-WYAG3YFC.js";import{c as n}from"./chunk-LP3GSA6N.js";n();import{cac as m}from"cac";import x from"restore-cursor";var c={name:"fast-dirpy",type:"module",version:"0.1.3",description:"A simple library/CLI to download video using dirpy.com",author:"Vincent-the-gamer",license:"MIT",homepage:"https://github.com/Vincent-the-gamer/fast-dirpy#readme",repository:{type:"git",url:"git+https://github.com/Vincent-the-gamer/fast-dirpy.git"},bugs:{url:"https://github.com/Vincent-the-gamer/fast-dirpy/issues"},sideEffects:!1,main:"dist/index.js",module:"dist/index.js",types:"dist/index.d.ts",typesVersions:{"*":{".":["./dist/index.d.ts","./dist/cli.d.ts"]}},bin:{"fast-dirpy":"bin/fast-dirpy.js"},files:["dist"],scripts:{tsx:"tsx",build:"tsup",test:"vitest",dep:"taze major","lint:fix":"eslint . --fix",login:"pnpm login --registry https://registry.npmjs.com"},publishConfig:{registry:"https://registry.npmjs.com",access:"public"},dependencies:{axios:"^1.8.4",cac:"^6.7.14",jsdom:"^26.0.0","restore-cursor":"^5.1.0",unconfig:"^7.3.1"},devDependencies:{"@antfu/eslint-config":"^4.11.0","@types/node":"^22.13.17",deepmerge:"^4.3.1",eslint:"^9.23.0",taze:"^19.0.4",tsup:"^8.4.0",tsx:"^4.19.3",typescript:"^5.8.2",vitest:"^3.1.1"}};var o=m("fast-dirpy");o.command("get <url>","get video direct link.").option("--proxyHost, -H <proxyHost>","Proxy host.").option("--proxyPort, -P <proxyPort>","Proxy port.").action(async(i,s)=>{let{proxyHost:t,proxyPort:e}=s,p=await d(i,t?{proxy:{host:t,port:e}}:void 0);console.log(p)});o.command("download <url>","download a video.").option("--path, -p <path>","Download destination path + filename. e.g. /xxx/example.mp4.").option("--proxyHost, -H <proxyHost>","Proxy host.").option("--proxyPort, -P <proxyPort>","Proxy port.").action(async(i,s)=>{let{proxyHost:t,proxyPort:e,path:r}=s;a({url:i,path:r||"./download.mp4"},t?{proxy:{host:t,port:e}}:void 0)});o.help();o.version(c.version);o.parse();x();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-dirpy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "A simple library/CLI to download video using dirpy.com",
|
|
6
6
|
"author": "Vincent-the-gamer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@antfu/eslint-config": "^4.11.0",
|
|
47
|
-
"@types/node": "^22.13.
|
|
47
|
+
"@types/node": "^22.13.17",
|
|
48
48
|
"deepmerge": "^4.3.1",
|
|
49
49
|
"eslint": "^9.23.0",
|
|
50
50
|
"taze": "^19.0.4",
|
|
51
51
|
"tsup": "^8.4.0",
|
|
52
52
|
"tsx": "^4.19.3",
|
|
53
53
|
"typescript": "^5.8.2",
|
|
54
|
-
"vitest": "^3.
|
|
54
|
+
"vitest": "^3.1.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"tsx": "tsx",
|