Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
docs: add node <v13 import example
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus authored Apr 14, 2020
1 parent 3e4af10 commit 607fb43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ npm i @foxy.io/node-api

### Step 2: Import

```js
const { FoxyApi } = require("@foxy.io/node-api");
```

With TypeScript or Node v13+ you can also use [ES Modules](http://nodejs.org/docs/latest-v13.x/api/esm.html…):

```ts
import { FoxyApi } from "@foxy.io/node-api";
```
Expand Down

0 comments on commit 607fb43

Please sign in to comment.