aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/md/docs/web3_wrapper/2/installation.md
blob: 14c4f066c808c75b8864e9c6ba5b82fd67f9484f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
**Install**

```bash
npm install @0x/web3-wrapper --save
```

**Import**

```javascript
import { Web3Wrapper } from '@0x/web3-wrapper';
```

or

```javascript
var Web3Wrapper = require('@0x/web3-wrapper').Web3Wrapper;
```

If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:

```
"include": [
    "./node_modules/web3-typescript-typings/index.d.ts",
]
```