Socket
Socket
Sign inDemoInstall

sqreen-api

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sqreen-api

A node.js client for Sqreen API (https://www.sqreen.io/developers.html)


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Sqreen-api

Build Status npm npm license

This module is a just a small helper for the Sqreen API (https://www.sqreen.io/developers.html) For the "main" product, see https://www.npmjs.com/package/sqreen

Install

npm i sqreen-api --save

Usage

const SqreenApi = require('sqreen-api');
const sqreenApi = new SqreenApi('YOUR_API_KEY');

// Get details about email
sqreenApi.email('myemail@mail.com')
  .then(() => {
      /*
        {
          email: 'ChunkyLover53@aol.com',
          risk_score: 0,
          is_known_attacker: false,
          high_risk_security_events_count: 0,
          security_events_count: 0,
          is_disposable: false,
          is_email_malformed: false,
          is_email_harmful: false
        }
       */
    });

// Get detais about ip
sqreenApi.ip('8.8.8.8')
  .then(() => {
      /*
        {
          ip: '8.8.8.8',
          ip_version: 4,
          risk_score: 5,
          is_known_attacker: false,
          security_events_count: 0,
          high_risk_security_events_count: 0,
          ip_geo: {
            latitude: 37.38600158691406,
            city: 'Mountain View',
            longitude: -122.08380126953125,
            country_code: 'USA'
          },
          is_datacenter: true,
          is_vpn: false,
          is_proxy: false,
          is_private: false,
          is_tor: false
        }
       */
    });

// ---

In other languages

Background

This node.js module is not maintened by Sqreen.io. @vdeturckheim forced me to do that repo :stuck_out_tongue:

Keywords

FAQs

Last updated on 06 Jun 2017

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