Skip to content

Commit 0ac6e35

Browse files
author
Cache Hamm
committed
Update README to require via object expansion
1 parent fefacdb commit 0ac6e35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $ npm install json-rules-engine
3232
This example demonstrates an engine for detecting whether a basketball player has fouled out (a player who commits five personal fouls over the course of a 40-minute game, or six in a 48-minute game, fouls out).
3333

3434
```js
35-
const Engine = require('json-rules-engine').Engine
35+
const { Engine } = require('json-rules-engine')
3636

3737

3838
/**
@@ -109,7 +109,7 @@ Fact information is loaded via API call during runtime, and the results are cach
109109
It also demonstates use of the condition _path_ feature to reference properties of objects returned by facts.
110110

111111
```js
112-
const Engine = require('json-rules-engine').Engine
112+
const { Engine } = require('json-rules-engine')
113113

114114
// example client for making asynchronous requests to an api, database, etc
115115
import apiClient from './account-api-client'

0 commit comments

Comments
 (0)