Skip to content

Commit

Permalink
Use allow/deny list in docs
Browse files Browse the repository at this point in the history
PR-URL: #1699
Credit: @luciomartinez
Close: #1699
Reviewed-by: @ruyadorno
  • Loading branch information
Lucio Martinez authored and ruyadorno committed Sep 22, 2020
1 parent 1909ae0 commit 5837a48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/content/configuring-npm/package-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,16 +825,16 @@ module will run on:
"os" : [ "darwin", "linux" ]
```
You can also blacklist instead of whitelist operating systems,
just prepend the blacklisted os with a '!':
You can also block instead of allowing operating systems,
just prepend the blocked os with a '!':
```json
"os" : [ "!win32" ]
```
The host operating system is determined by `process.platform`
It is allowed to both blacklist, and whitelist, although there isn't any
It is allowed to both block and allow an item, although there isn't any
good reason to do this.
### cpu
Expand All @@ -846,7 +846,7 @@ you can specify which ones.
"cpu" : [ "x64", "ia32" ]
```
Like the `os` option, you can also blacklist architectures:
Like the `os` option, you can also block architectures:
```json
"cpu" : [ "!arm", "!mips" ]
Expand Down
4 changes: 2 additions & 2 deletions docs/content/using-npm/developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ The following paths and files are never ignored, so adding them to
If, given the structure of your project, you find `.npmignore` to be a
maintenance headache, you might instead try populating the `files`
property of `package.json`, which is an array of file or directory names
that should be included in your package. Sometimes a whitelist is easier
to manage than a blacklist.
that should be included in your package. Sometimes manually picking
which items to allow is easier to manage than building a block list.

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

Expand Down

0 comments on commit 5837a48

Please sign in to comment.