Skip to content

Commit dfb83c7

Browse files
MaxBlack-devMax Black
andauthored
docs: add example for keywords field (#8749)
## Description Adds an example to the keywords field documentation in package.json to clarify the expected format. ## Changes - Added JSON example showing keywords as an array of strings ## Fixes Closes #7070 ## Type of Change - [x] Documentation update Co-authored-by: Max Black <husivm@google.com>
1 parent 1b1e227 commit dfb83c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/lib/content/configuring-npm/package-json.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ Put keywords in it.
6565
It's an array of strings.
6666
This helps people discover your package as it's listed in `npm search`.
6767

68+
Example:
69+
70+
```json
71+
"keywords": [
72+
"node",
73+
"javascript",
74+
"npm"
75+
]
76+
```
77+
6878
### homepage
6979

7080
The URL to the project homepage.

0 commit comments

Comments
 (0)