Skip to content

Commit 5b7e5aa

Browse files
committed
update readme
1 parent eab0831 commit 5b7e5aa

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ npm i github-directory-downloader
1212
```
1313

1414
## 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+
1522
```typescript
1623
import download from 'github-directory-downloader';
1724
import { resolve } from 'path';

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22

3-
require('../dist/cli')();
3+
require('../dist/cli').default();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-directory-downloader",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Download just a sub directory from a GitHub repo",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)