diff options
author | Kadinsky <kandinsky454@protonmail.ch> | 2018-10-19 04:15:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 04:15:31 +0800 |
commit | 65d85ca5008fe0c307506b388d6ace858122f8ad (patch) | |
tree | f8d4b0aa654eab3f26bdbfe40dea6fb7e105e864 /packages/website/md/docs/web3_wrapper/2/installation.md | |
parent | 857eb95ac0f8299fe517321cb805a836232222bc (diff) | |
parent | c2038eae5bc02fc24edcb369381b0d9699aed0aa (diff) | |
download | dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.tar dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.tar.gz dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.tar.bz2 dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.tar.lz dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.tar.xz dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.tar.zst dexon-0x-contracts-65d85ca5008fe0c307506b388d6ace858122f8ad.zip |
Merge pull request #1158 from 0xProject/docSectionFixes
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", +] +``` |