Skip to content

Commit

Permalink
feat: prebuilt browser bundle (#74)
Browse files Browse the repository at this point in the history
This is a surgical update to provide browserified bundle
that can be loaded from CDNs such as jsDelivr.

- bumps `aegir` to the latest version
- adds browserified bundle: `dist/index.min.js`
- updates `package.json` to pass `npx aegir lint-package-json`
  • Loading branch information
lidel committed May 26, 2020
1 parent 64615ef commit 05ebf61
Show file tree
Hide file tree
Showing 3 changed files with 10,205 additions and 8,012 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,25 @@
## Install

### NPM


```js
npm install --save ipfs-geoip
```

### CDN

Instead of a local installation (and browserification) you may request a [remote copy from jsDelivr](https://www.jsdelivr.com/package/npm/ipfs-geoip):

```html
<!-- loading the minified version using jsDelivr -->
<script src="https://cdn.jsdelivr.net/npm/ipfs-geoip@4.0.0/dist/index.min.js"></script>
```

When using prebuilt bundle from CDN, `ipfs-geoip` will be exposed under `window.IpfsGeoip`


## Usage

```js
Expand Down

0 comments on commit 05ebf61

Please sign in to comment.