Socket
Socket
Sign inDemoInstall

netlinq-api

Package Overview
Dependencies
9
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    netlinq-api

An API wrapper for the NETLINQ IP management software.


Version published
Weekly downloads
4
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

netlinq-api

This project features a fully-typed api wrapper around the Netlinq IP Management, mapping 100% of available calls. It is written in TypeScript and can be used in both Node.js and the browser.

Installation

You can install the package via your preferred package manager:

npm install netlinq-api
yarn add netlinq-api
pnpm add netlinq-api

Usage

To use this package you need to have an API key. You can get one by contacting the Synlinq support.

import { NetlinqApi } from "netlinq-api";

// Create a new instance of the Netlinq API wrapper with your API key
const netlinq = new NetlinqApi({
  apiKey: "my-secret-api-key",
  // You can also set a custom host if you want to use a different Netlinq instance
  // host: "https://netlinq.de/api/v1",
});

async function test() {
  // For example: Get data for a given IPv4 address
  const address = await netlinq.ipv4.address.getByIp({
    ip: "192.168.0.1",
    // You can also include the traffic data if you want to
    // traffic_from: "30d",
    // traffic_to: "now",
  });

  // Another example: Set rDNS for a given IPv4 address
  await netlinq.rDNS.ipv4.setByIp({
    ip: "192.168.0.1",
    rdns: "my-rdns.example.com",
  });
}

test().catch(console.error)

Notes

Some API calls are implemented in this package, but not working on the Netlinq API. These are marked with a TODO comment in the source code.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Keywords

FAQs

Last updated on 06 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc