Skip to content

Commit

Permalink
📝 Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Oct 3, 2017
1 parent b8d4e96 commit e2e3522
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions README.md
Expand Up @@ -102,8 +102,6 @@ wretch("endpoint")

# Installation

**Wretch is bundled using the UMD format (@`dist/bundle/wretch.js`).**

## Npm

```sh
Expand All @@ -123,21 +121,6 @@ npm install
npm start
```

## Include

```html
<!--- "wretch" will be attached to the global window object. -->
<script src="path/to/wretch.js"></script>
```

```typescript
// new school
import wretch from "wretch"

// old school
const wretch = require("wretch")
```

# Compatibility

## Browsers
Expand All @@ -157,6 +140,25 @@ global.FormData = require("form-data")

# Usage

**Wretch is bundled using the UMD format (@`dist/bundle/wretch.js`) alongside es2015 modules (@`dist/index.js`) and typescript definitions.**

## Import

```html
<!--- "wretch" will be attached to the global window object. -->
<script src="path/to/wretch.js"></script>
```

```typescript
// new school
import wretch from "wretch"

// old school
const wretch = require("wretch")
```

## Code

*Wretcher objects are immutable.*

```javascript
Expand Down

0 comments on commit e2e3522

Please sign in to comment.