fix(docs): update
This commit is contained in:
parent
d4dbf4f2b3
commit
64c381d42f
@ -1,45 +0,0 @@
|
||||
# dnsly
|
||||
|
||||
smart dns methods written in TypeScript
|
||||
|
||||
## Availabililty
|
||||
|
||||
[](https://www.npmjs.com/package/dnsly)
|
||||
[](https://GitLab.com/pushrocks/dnsly)
|
||||
[](https://github.com/pushrocks/dnsly)
|
||||
[](https://pushrocks.gitlab.io/dnsly/)
|
||||
|
||||
## Status for master
|
||||
|
||||
[](https://GitLab.com/pushrocks/dnsly/commits/master)
|
||||
[](https://GitLab.com/pushrocks/dnsly/commits/master)
|
||||
[](https://www.npmjs.com/package/dnsly)
|
||||
[](https://david-dm.org/pushrocks/dnsly)
|
||||
[](https://www.bithound.io/github/pushrocks/dnsly/master/dependencies/npm)
|
||||
[](https://www.bithound.io/github/pushrocks/dnsly)
|
||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||
[](http://standardjs.com/)
|
||||
|
||||
## Usage
|
||||
|
||||
```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: dnsly.I_AAAA) => {
|
||||
// AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
|
||||
// do something
|
||||
});
|
||||
```
|
||||
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
For further information read the linked docs at the top of this README.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
|
||||
[](https://push.rocks)
|
10
readme.md
10
readme.md
@ -25,6 +25,16 @@ smart dns methods written in TypeScript
|
||||
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
```typescript
|
||||
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: dnsly.I_AAAA) => {
|
||||
// AAAA record for google.com, the I_AAAA will give you proper typings for the record return type
|
||||
// do something
|
||||
});
|
||||
```
|
||||
|
||||
For further information read the linked docs at the top of this README.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
|
Loading…
x
Reference in New Issue
Block a user