# uport-did-resolver

> Resolve uPort DID documents

Latest version **0.0.7** (published 2019-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install uport-did-resolver
pnpm add uport-did-resolver
yarn add uport-did-resolver
bun add uport-did-resolver
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2019-04-15 |
| First published | 2018-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Pelle Braendgaard |
| Maintainers | aldigjo, localredhead, mike.xu, pelleb, rmw2, simonas-notcat, zachferland |

## Links

- npm: https://www.npmjs.com/package/uport-did-resolver
- Repository: https://github.com/uport-project/uport-did-resolver
- Homepage: https://github.com/uport-project/uport-did-resolver#readme
- Issues: https://github.com/uport-project/uport-did-resolver/issues
- npm.io page: https://npm.io/package/uport-did-resolver

## Dependencies (2)

- [uport-lite](https://npm.io/package/uport-lite.md) ^1.0.5
- [did-resolver](https://npm.io/package/did-resolver.md) 0.0.6

## Recent versions

- 0.0.7 (latest) — 2019-04-15
- 0.0.4-alpha2 (alpha) — 2018-12-27
- 0.0.6 — 2019-04-10
- 0.0.5 — 2019-02-21
- 0.0.5-alpha.1 — 2019-02-21
- 0.0.4 — 2019-01-14
- 0.0.4-alpha1 — 2018-12-27
- 0.0.3 — 2018-06-21
- 0.0.2 — 2018-03-29
- 0.0.1 — 2018-02-21

## README

# uPort DID Resolver

This library is intended to resolve uPort DID documents.

It supports the proposed [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/) spec from the [W3C Credentials Community Group](https://w3c-ccg.github.io).

It requires the `did-resolver` library, which is the primary interface for resolving DIDs.

## Resolving a DID document

The resolver presents a simple `resolver()` function that returns a ES6 Promise returning the DID document.

```js
import resolve from 'did-resolver'
import registerResolver from 'uport-did-resolver'

registerResolver()

resolve('did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX/some/path#fragment=123').then(doc => console.log)

// You can also use ES7 async/await syntax
const doc = await resolve('did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX/some/path#fragment=123')
```

---
_Source: https://npm.io/package/uport-did-resolver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
