Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ebb007bcdb | |||
e6d99d5664 | |||
7b29efc398 | |||
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)
|
|
@ -4,7 +4,7 @@
|
|||||||
},
|
},
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [
|
"npmGlobalTools": [
|
||||||
"@pushrocks/npmts",
|
"@gitzone/npmts",
|
||||||
"ts-node"
|
"ts-node"
|
||||||
],
|
],
|
||||||
"npmAccessLevel": "public"
|
"npmAccessLevel": "public"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartdns",
|
"name": "@pushrocks/smartdns",
|
||||||
"version": "3.0.1",
|
"version": "3.0.3",
|
||||||
"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",
|
||||||
|
10
readme.md
10
readme.md
@ -25,6 +25,16 @@ smart dns methods written in TypeScript
|
|||||||
|
|
||||||
Use TypeScript for best in class instellisense.
|
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.
|
For further information read the linked docs at the top of this README.
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
Reference in New Issue
Block a user