# has-did-method

> Helper module for checking the presence of methods within a DID URI.

Latest version **0.1.0** (published 2018-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-did-method
pnpm add has-did-method
yarn add has-did-method
bun add has-did-method
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-08-01 |
| First published | 2018-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Charles Kelly |
| Maintainers | cckelly21 |
| Keywords | did, uri, decentralized, identity |

## Links

- npm: https://www.npmjs.com/package/has-did-method
- Repository: https://github.com/arablocks/has-did-method
- Homepage: https://github.com/arablocks/has-did-method#readme
- Issues: https://github.com/arablocks/has-did-method/issues
- npm.io page: https://npm.io/package/has-did-method

## Dependencies (1)

- [did-uri](https://npm.io/package/did-uri.md) ^0.2.4

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-08-01

## README

# has-did-method

Helper module for checking the presence of methods within a DID URI.

## Installation

```sh
$ npm install has-did-method
```

## Example Usage

```js
const hasDIDMethod = require('has-did-method')
let exists = hasDIDMethod('did:ara:1234') // returns true
exists = hasDIDMethod('1234') // returns false
```

## Tests

```sh
$ npm run test
```

## See Also

* [Decentralized Identity Spec](https://github.com/w3c-ccg/did-spec)
* [did-uri](https://github.com/AraBlocks/did-uri)

## License

MIT

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