Skip to content

Commit 5837a48

Browse files
Lucio Martinezruyadorno
authored andcommitted
Use allow/deny list in docs
PR-URL: #1699 Credit: @luciomartinez Close: #1699 Reviewed-by: @ruyadorno
1 parent 1909ae0 commit 5837a48

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,16 +825,16 @@ module will run on:
825825
"os" : [ "darwin", "linux" ]
826826
```
827827
828-
You can also blacklist instead of whitelist operating systems,
829-
just prepend the blacklisted os with a '!':
828+
You can also block instead of allowing operating systems,
829+
just prepend the blocked os with a '!':
830830
831831
```json
832832
"os" : [ "!win32" ]
833833
```
834834
835835
The host operating system is determined by `process.platform`
836836
837-
It is allowed to both blacklist, and whitelist, although there isn't any
837+
It is allowed to both block and allow an item, although there isn't any
838838
good reason to do this.
839839
840840
### cpu
@@ -846,7 +846,7 @@ you can specify which ones.
846846
"cpu" : [ "x64", "ia32" ]
847847
```
848848
849-
Like the `os` option, you can also blacklist architectures:
849+
Like the `os` option, you can also block architectures:
850850
851851
```json
852852
"cpu" : [ "!arm", "!mips" ]

docs/content/using-npm/developers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ The following paths and files are never ignored, so adding them to
152152
If, given the structure of your project, you find `.npmignore` to be a
153153
maintenance headache, you might instead try populating the `files`
154154
property of `package.json`, which is an array of file or directory names
155-
that should be included in your package. Sometimes a whitelist is easier
156-
to manage than a blacklist.
155+
that should be included in your package. Sometimes manually picking
156+
which items to allow is easier to manage than building a block list.
157157

158158
#### Testing whether your `.npmignore` or `files` config works
159159

0 commit comments

Comments
 (0)