Socket
Socket
Sign inDemoInstall

freedns-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freedns-api

A node.js wrapper around freedns.afraid.org API


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

freedns-api

Dependency Status npm version

A node.js wrapper around freedns.afraid.org API

Installation

npm install freedns-api

Usage

'use strict';
const freednsApi = require('freedns-api');
(async () => {
    /**
     *  Wrap everything inside a try-catch block.
     *  if there is invalid configuration or network problems an error will be thrown
     */
    try {

        // Get a list of all account dns records
        const entries = await freednsApi.getdyndns({
            username: 'BruceWayne',
            password: 'B@tM@n'
        });

        // Update the first record with a user provided ip address
        const status = await freednsApi.update({
            updateUrl: entries[0].updateUrl, // This value can be obtained directly from the website
            address: '10.10.21.11' // This is optional, if not used, the ip will be detected automatically
        });

        console.log(status);

    } catch (error) {
        console.error(error);
    }
    
})();

License

MIT

Keywords

FAQs

Package last updated on 12 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc