File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ npm i github-directory-downloader
12
12
```
13
13
14
14
## Usage
15
+
16
+ #### CLI
17
+ ``` sh
18
+ github-directory-downloader https://github.com/mrdoob/three.js/tree/dev/docs/manual --dir=temp --token=******
19
+ ```
20
+ #### Programmatic
21
+
15
22
``` typescript
16
23
import download from ' github-directory-downloader' ;
17
24
import { resolve } from ' path' ;
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
- require ( '../dist/cli' ) ( ) ;
3
+ require ( '../dist/cli' ) . default ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " github-directory-downloader" ,
3
- "version" : " 1.3.0 " ,
3
+ "version" : " 1.3.1 " ,
4
4
"description" : " Download just a sub directory from a GitHub repo" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments