diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-19 00:31:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-19 00:31:38 +0800 |
commit | c4ae91c7c5aaa2d6e278448667bf828162be93bc (patch) | |
tree | 46843ed4273b158e0313897d2b5029516c4222ba /packages/website/md/docs/web3_wrapper/2/installation.md | |
parent | 8b62b350b1fed6a0d8827ca9ed5fcec3e78ae82f (diff) | |
download | dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.tar dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.tar.gz dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.tar.bz2 dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.tar.lz dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.tar.xz dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.tar.zst dexon-0x-contracts-c4ae91c7c5aaa2d6e278448667bf828162be93bc.zip |
Update doc ref markdown sections
Diffstat (limited to 'packages/website/md/docs/web3_wrapper/2/installation.md')
-rw-r--r-- | packages/website/md/docs/web3_wrapper/2/installation.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/website/md/docs/web3_wrapper/2/installation.md b/packages/website/md/docs/web3_wrapper/2/installation.md new file mode 100644 index 000000000..14c4f066c --- /dev/null +++ b/packages/website/md/docs/web3_wrapper/2/installation.md @@ -0,0 +1,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", +] +``` |