Skip to content

Commit

Permalink
docs(readme): harmonize README.md TypeScript imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Bour committed May 28, 2021
1 parent 62bea69 commit 84c8838
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Using CommonJS syntax:

<!-- prettier-ignore-start -->
```typescript
const {randomBytesSeed} = require('@csquare/random-bytes-seed');
const { randomBytesSeed } = require('@csquare/random-bytes-seed');

const output = randomBytesSeed(10, 'my-seed'); // Generate a 10-bytes, stable buffer
```
Expand All @@ -51,7 +51,7 @@ or

<!-- prettier-ignore-start -->
```typescript
import {randomBytesSeed} from '@csquare/random-bytes-seed';
import { randomBytesSeed } from '@csquare/random-bytes-seed';

const output = randomBytesSeed(10, 'my-seed'); // Generate a 10-bytes, stable buffer
```
Expand All @@ -68,7 +68,7 @@ change the base seed by overriding the default options.

<!-- prettier-ignore-start -->
```typescript
import {options} from '@csquare/random-bytes-seed';
import { options } from '@csquare/random-bytes-seed';

options.seed = 'any-string-you-want'; // Override the base seed for all future calls
```
Expand Down

0 comments on commit 84c8838

Please sign in to comment.