Update README

This commit is contained in:
Brandon Millman
2018-10-02 16:30:46 -07:00
parent 42083e1408
commit efe173e4f7

View File

@@ -14,30 +14,16 @@ yarn add @0xproject/asset-buyer
**Import**
For single-asset price estimation and purchase:
```typescript
import { AssetBuyer } from '@0xproject/asset-buyer';
```
For multiple assets:
```typescript
import { AssetBuyerManager } from '@0xproject/asset-buyer';
```
or
```javascript
var AssetBuyer = require('@0xproject/asset-buyer').AssetBuyer;
```
and
```javascript
var AssetBuyerManager = require('@0xproject/asset-buyer').AssetBuyerManager;
```
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
```json