Skip to content

Commit

Permalink
Updated isomorphic-unfetch code examples
Browse files Browse the repository at this point in the history
Updated example to match ES6+ syntax for consistency as well as new NPM syntax.
  • Loading branch information
ericmurphyxyz authored Oct 31, 2018
1 parent 1670b30 commit 2e5cbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/isomorphic-unfetch/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Switches between [unfetch](https://github.com/developit/unfetch) & [node-fetch](
This project uses [node](https://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.

```sh
$ npm install --save isomorphic-unfetch
$ npm i isomorphic-unfetch
```

Then with a module bundler like [rollup](https://rollupjs.org/) or [webpack](https://webpack.js.org/), use as you would anything else:
Expand All @@ -17,7 +17,7 @@ Then with a module bundler like [rollup](https://rollupjs.org/) or [webpack](http
import fetch from 'isomorphic-unfetch'

// using CommonJS modules
var fetch = require('isomorphic-unfetch')
const fetch = require('isomorphic-unfetch')
```

## Usage
Expand Down

0 comments on commit 2e5cbf9

Please sign in to comment.