Skip to content

Commit

Permalink
docs: updated readme example
Browse files Browse the repository at this point in the history
BREAKING CHANGE: options are now 3 parameters
  • Loading branch information
simonecorsi committed Jul 1, 2021
1 parent 33414a5 commit 97e611e
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

<!-- toc -->

- [fine](#fine)
- [About The Project](#about-the-project)
- [Installation](#installation)
- [Usage](#usage)
- [Arguments](#arguments)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)
- [About The Project](#about-the-project)
- [Installation](#installation)
- [Usage](#usage)
- [Arguments](#arguments)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)

<!-- tocstop -->

Expand All @@ -40,15 +39,14 @@ npm i @scdev/fine
```js
const fine = require("@scdev/fine");
fine(
{
timeout: 2000,
events: ["SIGINT", "SIGTERM", "uncaughtException", "unhandledRejection"],
},
2000,
["SIGINT", "SIGTERM", "uncaughtException", "unhandledRejection"],
[
redis.disconnect,
() => {
// custom logic
return db.disconnect();
async () => {
await db.disconnect();
// some more logic
return "ok";
},
]
);
Expand Down

0 comments on commit 97e611e

Please sign in to comment.