Skip to content

Commit

Permalink
docs: dir is part of options not standalone argument (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi authored Feb 16, 2023
1 parent 4d8cbc2 commit af23a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ const { source, dir } = await downloadTemplate('github:unjs/template')
**Options:**

- `source`: (string) Input source in format of `[provider]:repo[/subpath][#ref]`.
- `dir`: (string) Destination directory to clone to. If not provided, `user-name` will be used relative to the current directory.
- `options`: (object) Options are usually inferred from the input string. You can customize them.
- `dir`: (string) Destination directory to clone to. If not provided, `user-name` will be used relative to the current directory.
- `provider`: (string) Either `github`, `gitlab`, `bitbucket` or `sourcehut`. The default is `github`.
- `repo`: (string) Name of repository in format of `{username}/{reponame}`.
- `ref`: (string) Git ref (branch or commit or tag). The default value is `main`.
Expand Down

0 comments on commit af23a7d

Please sign in to comment.