Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "get-ens", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Get text records of an ENS address with ease.", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
@@ -6,5 +6,5 @@ <div align="center"> | ||
[![Version][v-badge-url]][npm-url] [![Downloads][dl-badge-url]][npm-url] [![GitHub Workflow Status][gh-actions-img]][github-actions] [![Codecov][cov-badge-url]][cov-url] | ||
<sub>Get text records of an ENS address with ease.</sub> | ||
</div> | ||
@@ -20,4 +20,6 @@ | ||
### Node.js | ||
```ts | ||
import { getDefaultProvider } from '@ethersproject/provider' | ||
import { getDefaultProvider } from '@ethersproject/providers' | ||
import { getENS } from 'get-ens' | ||
@@ -38,5 +40,12 @@ import fetch from 'node-fetch' | ||
records: { | ||
web: { twitter: 'twitter.com/fodasynthesis' }, | ||
avatar: 'https://slate.textile.io/ipfs/bafkreiddogjj5m6nhru72cqvj7napv3knwyqcvxlfxu4axkwhhlg55t5cu', | ||
color: '#f0da91', | ||
description: 'ⓕ™', | ||
email: 'foda@just.is', | ||
url: 'instagram.com/foda.farm' | ||
url: 'https://asf.is', | ||
web: { | ||
github: 'https://github.com/a-s-f', | ||
instagram: 'https://instagram.com/foda.farm', | ||
twitter: 'twitter.com/fodasynthesis' | ||
} | ||
} | ||
@@ -47,2 +56,13 @@ } | ||
### Deno | ||
```ts | ||
import { getENS } from 'https://esm.sh/get-ens' | ||
import { getDefaultProvider } from 'https://esm.sh/@ethersproject/providers' | ||
const provider = getDefaultProvider() | ||
const { address, records, owner } = await getENS(provider)('foda.eth') | ||
``` | ||
[v-badge-url]: https://img.shields.io/npm/v/get-ens.svg?style=for-the-badge&color=4D48F7&label=&logo=npm | ||
@@ -49,0 +69,0 @@ [npm-url]: https://www.npmjs.com/package/get-ens |
7938
71