diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-23 15:53:36 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-23 15:53:36 -0700 |
commit | 6fdbc36cdcd44bcd68767ca7c804a4ce55520c1a (patch) | |
tree | bb5269212ecdb9f935c644daf28a7363e0d392de /packages/browser/README.md | |
parent | 3283a52ed99aa6f2d90cde9cb59f2ee9d7a2b4c9 (diff) |
Add installation instructions for packages
Diffstat (limited to 'packages/browser/README.md')
-rw-r--r-- | packages/browser/README.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/browser/README.md b/packages/browser/README.md index 2c402c7..03bbf2a 100644 --- a/packages/browser/README.md +++ b/packages/browser/README.md @@ -2,3 +2,29 @@  [](https://www.npmjs.com/package/@webauthntine/browser)  + +## Installation + +### npm + +This package is available on **npm**: + +```sh +npm install @webauthntine/browser +``` + +It can then be imported into a project as usual: + +```js +import WebAuthntineBrowser from '@webauthntine/browser'; +``` + +### UMD + +This package can also be installed via **unpkg** by including the following script in your page's `<head>` element: + +```html +<script src="https://unpkg.com/@webauthntine/browser/dist/webauthntine-browser.min.js"></script> +``` + +The library's methods will be available on the global `WebAuthntineBrowser` object. |