Skip to content

Commit

Permalink
Add npm note about extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Jul 24, 2016
1 parent e620b17 commit e68e741
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ The extension makes use of some common structures that need to be described prio
* `validate` - an optional function to validate values that takes 4 parameters `params`, `value`, `state` and `options`. One of `setup` or `validate` **must** be provided.
* `description` - an optional string or function taking the parameters as argument to describe what the rule is doing.
#### npm note
If you publish your extension on npm, make sure to add `joi` and `extension` as keywords so that it's discoverable more easily.
#### Examples
```js
Expand Down

0 comments on commit e68e741

Please sign in to comment.