1.0.1 • Published 4 years ago

node-visalist v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Node-Visalist

A Wrapper for Visalist.io API

Usage

const Visalist = require('node-visalist');
const visa = new Visalist({
  apiKey: ''
});

Get Visa requirements by country

const requirements = await visa.getRequirements(country);

/* Specify the origin country slug and it will output the requirements for every country in the world (or at least in the database) */

Get Visa requirements for a specific destination

const requirements = await visa.getRequirementsForACountry(
  originCountry,
  destinationCountry
);
/* originCountry and destinationCountry are slugs */