add docs
This commit is contained in:
parent
fe423a8e8a
commit
a69f565cf8
40
docs/index.md
Normal file
40
docs/index.md
Normal file
@ -0,0 +1,40 @@
|
||||
# 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)
|
Loading…
x
Reference in New Issue
Block a user