Skip to content

Commit

Permalink
chore: correct module name in readme (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored May 31, 2022
1 parent 66fde7c commit ffcd7cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Jobs are stopped automatically when the fastify instance is stopped.
First install the package:

```bash
npm i fastify-schedule toad-scheduler
npm i @fastify/schedule toad-scheduler
```

Next, set up the plugin:

```js
const fastify = require('fastify')();
const { fastifySchedulePlugin } = require('fastify-schedule');
const { fastifySchedulePlugin } = require('@fastify/schedule');
const { SimpleIntervalJob, AsyncTask } = require('toad-scheduler');

const task = new AsyncTask(
Expand All @@ -41,5 +41,5 @@ fastify.ready().then(() => {

For more detailed instructions, see the [documentation](https://github.com/kibertoad/toad-scheduler) of `toad-scheduler`.

[npm-image]: https://img.shields.io/npm/v/fastify-schedule.svg
[npm-url]: https://npmjs.org/package/fastify-schedule
[npm-image]: https://img.shields.io/npm/v/@fastify/schedule.svg
[npm-url]: https://npmjs.org/package/@fastify/schedule

0 comments on commit ffcd7cd

Please sign in to comment.