Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-rkn

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-rkn

Check IP or domain in RKN blocking.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Check IP or domain in RKN blocking.

Installation

npm i check-rkn

Usage

const rkn = require('check-rkn');

// Check list IPs
rkn(['216.58.214.110', '108.174.10.10'], (err, res) => {
    console.log(res)
});
// [ { ip: '216.58.214.110', block: false },
//   { ip: '108.174.10.10', block: true  } ]

// Check one IP
rkn('108.174.10.10', (err, res) => {
    console.log(res)
});
// true

// Check list domains
rkn(['google.com', 'linkedin.com'], (err, res) => {
    console.log(res)
});
// [ { ip: 'google.com', block: false, ips: [ { ip: '216.58.214.110',  block: false } ] },
//   { ip: 'linkedin.com', block: true, ips: [ { ip: '108.174.10.10',  block: true } ] } ]

// Check one domain (and IP)
rkn('linkedin.com', (err, res) => {
    console.log(res)
});
// true

// Check error data
rkn(['hello.trololo', '127.0.0.hello'], (err, res) => {
    console.log(res)
});
// [ { domain: 'hello.trololo', error: 'ENOTFOUND', ips: [] },
//   { domain: '127.0.0.hello', error: 'ENOTFOUND', ips: [] } ]
The first launch of each hour will last longer, since the new database is being downloaded.

© 2018 ExtensionsApp

Keywords

FAQs

Package last updated on 11 May 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc