npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

greip-node

v1.2.9

Published

Official Node.js library for Greip API

Readme

Greip Node.js Library

The official Node.js library for the Greip API.

Report Issue · Request Feature · Greip Website · Documentation

NPM Package of Greip Github Repository

npm version    GitHub code size in bytes    License: Apache 2.0    API Status


Installation

Install the package using npm or yarn:

npm install greip-node --save

or

yarn add greip-node

Usage

Import the Greip library and initialize it with your API token:

const { Greip } = require("greip-node");
const greip = new Greip(process.env.GREIP_TOKEN);

IP Lookup

Available Options

| Option | Type | Required | Description | | ------ | -------- | -------- | ---------------------------------------------------------------------------- | | ip | string | Yes | The IP address to lookup | | params | string[] | No | Modules to include: location, security, timezone, currency, device | | format | string | No | Response format: JSON, XML, CSV, Newline | | lang | string | No | Language: EN, AR, DE, FR, ES, JA, ZH, RU | | mode | string | No | Mode: live, test |

greip
    .Lookup({ ip: "1.1.1.1" })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

IP Threats

Available Options

| Option | Type | Required | Description | | ------ | ------ | -------- | ------------------------------------------------ | | ip | string | Yes | The IP address to check for threats | | format | string | No | Response format: JSON, XML, CSV, Newline | | mode | string | No | Mode: live, test |

greip
    .Threats({ ip: "1.1.1.1" })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Bulk IP Lookup

Available Options

| Option | Type | Required | Description | | ------ | -------- | -------- | ---------------------------------------------------------------------------- | | ips | string[] | Yes | Array of IP addresses to lookup | | params | string[] | No | Modules to include: location, security, timezone, currency, device | | format | string | No | Response format: JSON, XML, CSV, Newline | | lang | string | No | Language: EN, AR, DE, FR, ES, JA, ZH, RU | | mode | string | No | Mode: live, test |

greip
    .BulkLookup({ ips: ["1.1.1.1", "2.2.2.2"] })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

ASN Lookup

Available Options

| Option | Type | Required | Description | | ------ | ------ | -------- | -------------------- | | asn | string | Yes | The ASN to lookup | | mode | string | No | Mode: live, test |

greip
    .ASN({ asn: "AS01" })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Profanity Detection

Available Options

| Option | Type | Required | Description | | ------ | -------- | -------- | -------------------------------------------------------- | | text | string | Yes | The text to check for profanity | | params | string[] | No | Additional parameters (see docs) | | format | string | No | Response format: JSON, XML, CSV | | lang | string | No | Language: EN, AR, DE, FR, ES, JA, ZH, RU | | mode | string | No | Mode: live, test |

greip
    .Profanity({ text: "This is just normal sample text." })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Country Lookup

Available Options

| Option | Type | Required | Description | | ----------- | -------- | -------- | -------------------------------------------------------- | | countryCode | string | Yes | ISO 3166-1 alpha-2 country code | | params | string[] | No | Modules: language, flag, currency, timezone | | format | string | No | Response format: JSON, XML, CSV, Newline | | lang | string | No | Language: EN, AR, DE, FR, ES, JA, ZH, RU | | mode | string | No | Mode: live, test |

greip
    .Country({ countryCode: "SA" })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Email Validation

Available Options

| Option | Type | Required | Description | | ------ | ------ | -------- | ----------------------------- | | email | string | Yes | The email address to validate | | mode | string | No | Mode: live, test |

greip
    .EmailValidation({ email: "[email protected]" })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Phone Validation

Available Options

| Option | Type | Required | Description | | ----------- | ------ | -------- | --------------------------------- | | phone | string | Yes | The phone number to validate | | countryCode | string | Yes | Country code (ISO 3166-1 alpha-2) | | mode | string | No | Mode: live, test |

greip
    .PhoneValidation({
        phone: "123123123",
        countryCode: "US"
    })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Payment Fraud Prevention

Available Options

| Option | Type | Required | Description | | ------ | ------ | -------- | ----------------------------------------------------------------------------------------------------------------- | | data | object | Yes | Transaction data (see all fields) | | mode | string | No | Mode: live, test |

greip
    .PaymentFraud({
        data: {
            // ...transaction and customer details...
        }
    })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

IBAN Validation

Available Options

| Option | Type | Required | Description | | ------ | ------ | -------- | -------------------- | | iban | string | Yes | The IBAN to validate | | mode | string | No | Mode: live, test |

greip
    .IBANValidation({ iban: "BY86AKBB10100000002966000000" })
    .then((res) => {
        console.log(res.data);
    })
    .catch((error) => {
        console.error(error);
    });

Documentation

For detailed API documentation and advanced usage, visit the Greip Documentation.


Credits


Repository Activity

Alt