Skip to content

Commit 83d346c

Browse files
committed
fix: updated readme.md
1 parent 9bcc2cd commit 83d346c

File tree

1 file changed

+26
-37
lines changed

1 file changed

+26
-37
lines changed

README.md

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,53 +17,42 @@ tool, or inside your other package scaffolding tools.
1717
```
1818
$ npm init package-json
1919
$ npx create-package-json
20-
21-
# or
22-
23-
$ npm install -g create-package-json
24-
$ create-package-json
2520
```
2621

2722
### CLI Usage
2823

2924
```
3025
$ create-package-json --help
3126
32-
create-package-json
27+
Generate a package.json
3328
34-
Create a package.json
29+
Commands:
30+
create-package-json Generate a package.json [default]
3531
3632
Options:
37-
--help Show help [boolean]
38-
--version Show version number [boolean]
39-
--no-prompt Prompts, --no-prompt to use defaults and input only
40-
[boolean]
41-
--directory, -d Working directory [string]
42-
--silent, -S Suppress all output [boolean]
43-
--advanced Show advanced prompts [boolean]
44-
--existing-package [string]
45-
--scope [string]
46-
--scripts [string]
47-
--name [string]
48-
--package-version [string]
49-
--description [string]
50-
--author [string]
51-
--repository [string]
52-
--keywords [string]
53-
--license [string]
54-
--type [string]
55-
--main [string]
56-
--private [boolean]
57-
--dependencies [string]
58-
--dev-dependencies [string]
59-
--peer-dependencies [string]
60-
--test [string]
61-
--prepare [string]
62-
--post-publish [string]
63-
--pre-version [string]
64-
--spacer [string]
65-
--ignore-existing [boolean]
66-
--save-exact [boolean]
33+
--help Show help [boolean]
34+
--version Show version number [boolean]
35+
-d, --cwd Directory to run in [default: process.cwd()]
36+
--silent [boolean]
37+
--verbose [boolean]
38+
--ignore-existing Ignore existing files (& overwrite them)
39+
--name [string]
40+
--scope Set a scope to be used when suggesting a package name
41+
[string]
42+
-V, --package-version [string]
43+
--description [string]
44+
--author [string]
45+
--repository [string]
46+
--keywords [string]
47+
--license [string]
48+
--type [string]
49+
--main [string]
50+
--private [boolean]
51+
--dependencies [string]
52+
--dev-dependencies [string]
53+
--peer-dependencies [string]
54+
--spacer [string] [default: 2 spaces]
55+
--save-exact [boolean]
6756
```
6857

6958
Dependencies should be a comma separated list like `--dependencies="express,react"`, and it can also

0 commit comments

Comments
 (0)