diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-09-21 00:51:30 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-09-21 00:51:30 +0800 |
commit | 301e491952707cdad8929cb918209a3792201a7d (patch) | |
tree | 3092f1f3592d3c4b937bc3d11cdfdcdc66871248 /packages/website/md/docs/0xjs/1.0.1/installation.md | |
parent | 30622631ff588b4b87a05e4ce3ca2906ed1edf9f (diff) | |
parent | 3e70ab015ba2cf00064c985c0b76137b182abf7f (diff) | |
download | dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.tar dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.tar.gz dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.tar.bz2 dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.tar.lz dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.tar.xz dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.tar.zst dexon-sol-tools-301e491952707cdad8929cb918209a3792201a7d.zip |
Merge remote-tracking branch 'upstream/development' into sol-doc
Diffstat (limited to 'packages/website/md/docs/0xjs/1.0.1/installation.md')
-rw-r--r-- | packages/website/md/docs/0xjs/1.0.1/installation.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/website/md/docs/0xjs/1.0.1/installation.md b/packages/website/md/docs/0xjs/1.0.1/installation.md new file mode 100644 index 000000000..74c902afd --- /dev/null +++ b/packages/website/md/docs/0xjs/1.0.1/installation.md @@ -0,0 +1,40 @@ +0x.js ships as both a [UMD](https://github.com/umdjs/umd) module and a [CommonJS](https://en.wikipedia.org/wiki/CommonJS) package. + +#### CommonJS _(recommended)_: + +**Install** + +```bash +npm install 0x.js --save +``` + +**Import** + +```javascript +import { + assetDataUtils, + BigNumber, + ContractWrappers, + generatePseudoRandomSalt, + Order, + orderHashUtils, + signatureUtils, + SignerType, +} from '0x.js'; +``` + +#### UMD: + +**Install** + +Download the UMD module from our [releases page](https://github.com/0xProject/0x-monorepo/releases) and add it to your project. + +**Import** + +```html +<script type="text/javascript" src="0x.js"></script> +``` + +### Wiki + +Check out our [wiki](https://0xproject.com/wiki) for articles on how to get 0x.js setup with Ganache, Infura and more! |