Skip to content

Commit

Permalink
let to const in the README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt authored Aug 24, 2023
1 parent 887af53 commit 6504c29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
### Requiring for Node

```js
let seq = require('seq-logging');
const seq = require('seq-logging');
```

### Requiring for a browser

Using `seq-logging` in a browser context is the same, except the module to import is `seq-logging/browser`.

```js
let seq = require('seq-logging/browser');
const seq = require('seq-logging/browser');
```

### Usage
Expand All @@ -22,10 +22,10 @@ A `Logger` is configured with `serverUrl`, and optionally `apiKey` as well as ev
`requestTimeout` can be used to adjust timeout for stalled connections, default: 30s.

```js
let process = require('process');
let seq = require('seq-logging');
const process = require('process');
const seq = require('seq-logging');

let logger = new seq.Logger({ serverUrl: 'http://localhost:5341' });
const logger = new seq.Logger({ serverUrl: 'http://localhost:5341' });

logger.emit({
timestamp: new Date(),
Expand Down

0 comments on commit 6504c29

Please sign in to comment.