Official Javascript library just released!

It is now ready! Our official Javascript library is available on multiple package sources like Github, Yarn and NPM!

Check out the source code on Github: https://github.com/smartip-code/smartip-javascript

NPM: https://www.npmjs.com/package/@smartip/js

YARN: https://yarnpkg.com/en/package/@smartip/js

The library is completely written in Typescript and supports automatic caching of the responses.

This is a quick example of how easy it is use this library:

First install the library into your project using either npm or yarn:

$ npm install @smartip/js

And then just use it!

const {SmartIP} = require("@smartip/js")

let testApiKey = '249C35CF-81E7-4B49-8F9F-ACA72C9F5CD7';
const client = new SmartIP(testApiKey);
let hostname = true;
let userAgent = true;
let ipInfo = await client.requestIPData('8.8.8.8', hostname, userAgent);
console.log(ipInfo);