Skip to content

Commit

Permalink
Update api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jan 11, 2023
1 parent 6bde9d5 commit 2cb06d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ const messages = await publint({
* A virtual file-system object that handles fs/path operations.
* This field is required if you're using in the browser.
*/
vfs: createCustomVfsObj()
vfs: createCustomVfsObj(),
/**
* The level of messages to log (default: `'suggestion'`).
* - `suggestion`: logs all messages
* - `warning`: logs only `warning` and `error` messages
* - `error`: logs only `error` messages
*/
level: 'warning'
})

console.log(messages)
Expand Down

0 comments on commit 2cb06d9

Please sign in to comment.