Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
04733a5f52 | |||
17908f7028 |
@ -18,8 +18,15 @@ smart dns methods written in TypeScript
|
|||||||
[](http://standardjs.com/)
|
[](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
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
[](https://push.rocks)
|
[](https://push.rocks)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dnsly",
|
"name": "dnsly",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "smart dns methods written in TypeScript",
|
"description": "smart dns methods written in TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "../dist/index.d.ts",
|
"typings": "../dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user