improve README
This commit is contained in:
parent
c4c459901d
commit
17908f7028
@ -18,8 +18,15 @@ smart dns methods written in TypeScript
|
|||||||
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
|
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
we recommend the use of TypeScript
|
we recommend the use of TypeScript for optimal intellisense
|
||||||
```javascript
|
```javascript
|
||||||
|
import * as dnsly from 'dnsly'
|
||||||
|
|
||||||
|
let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
|
||||||
|
myDnsly.getRecord('example.com','AAAA') // returns promise
|
||||||
|
.then(record => { // AAAA record for google.com
|
||||||
|
// do something
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)
|
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)
|
||||||
|
Loading…
Reference in New Issue
Block a user