0.6.2 • Published 2 years ago

nordvpn-server-lister v0.6.2

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years ago

nordvpn-server-lister

CLI / api for listing NordVPN servers

Build Status Codacy Badge Coverage Status code style: prettier David GitHub

Installation

npm install -g nordvpn-server-lister

Usage

CLI

usage: vpn-servers [parameters]
    [-filter.<property> eq|lt|gt|le|ge|ne <value>]...   Filter result
    [-output=<property>]...                             Proprerties to show in result
    [-h]                                                Shows this help message

 Example:
   -filter.flag=SE -filter.load gt 24 -output=name      Lists servers whith flag=SE and load greater than 24

API

import fetch from "nordvpn-server-lister";

(async () => {
  const result = await fetch();

==>
{
  items: [
    {
      "name": "server1",
      "country": "Sweden"
    }...
  ]
}
})();