Skip to content

Commit 5b190b4

Browse files
committed
readme
1 parent 76b2b7b commit 5b190b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const appState = require('./appState')()
1717
Initialization with a simple logger:
1818

1919
```javascript
20-
const appState = require('./appState')((appState, newAppState) => {
20+
const appState = require('@vanioinformatika/appstate')((appState, newAppState) => {
2121
console.log(`App state has changed from ${appState} to ${newAppState}`)
2222
})
2323
```
@@ -32,15 +32,15 @@ You can use any logger library, for example pino.
3232

3333
```javascript
3434
let logger = require('pino')()
35-
const appState = require('./appState')((appState, newAppState) => {
35+
const appState = require('@vanioinformatika/appstate')((appState, newAppState) => {
3636
logger.warn(`App state has changed from ${appState} to ${newAppState}`)
3737
})
3838
```
3939

4040
Changing application state.
4141

4242
```javascript
43-
const appState = require('./appState')()
43+
const appState = require('@vanioinformatika/appstate')()
4444
appState.init()
4545
appState.running()
4646
appState.error()
@@ -50,7 +50,7 @@ appState.stopped()
5050
Reading application state.
5151

5252
```javascript
53-
const appState = require('./appState')()
53+
const appState = require('@vanioinformatika/appstate')()
5454
let applicationState = appState.get()
5555
```
5656

0 commit comments

Comments
 (0)