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 🙏

© 2024 – Pkg Stats / Ryan Hefner

prembly-pass

v0.1.5

Published

Whether you're building a new application from scratch or adding identity verification to an existing project, Prembly-Verify provides a reliable and secure way to verify your users' identities.

Downloads

13

Readme

PREMBLY PASS

Whether you're building a new application from scratch or adding identity verification to an existing project, Prembly Pass provides a reliable and secure way to verify your users' identities.

This SDK provides easier way for verifying identities, documents, and businesses with prembly's identitypass API.

This SDK is fully written in typescript.

NOTE - you must pass the parameters correctly and accordingly. hover over the methods to see the parameters in accord orders.

Getting Started

To install the Prembly Pass SDK for identity verification, run the following command:

npm install prembly-pass

# or

yarn add prembly-pass

Prembly Data Verification

import { PremblyDataVerification } from "prembly-pass";

const config = {
  x_api_key: "your-x-api-key",
  app_id: "your-app-id",
  environment: "test", // 'test' or 'live'
};

const premblyDataVerification = new PremblyDataVerification(config);

const { nigeria, kenya, ghana, uganda, southAfrica, sierraLeone, rwanda } =
  premblyDataVerification;

function App() {
  const handleCACVerification = async () => {
    nigeria
      .verifyCAC("BN", "092932", "TEST COMPANY")
      .then((res) => console.log(res));
  };

  return (
    <div>
      <h1>Data Verification app</h1>
      <button onClick={handleCACVerification}>Verify CAC</button>
    </div>
  );
}

export default App;

Note: Replace "your-x-api-key" and "your-app-id" with your actual credentials.

countries Data verification that are available:
  • Any countries other than NIGERIA has their country name after the verify prefix

| SN | Countries | Examples | | --- | ------------ | ------------------------------------- | | 1 | Nigeira | verifyBVN() , verifyPlateNumber() | | 2 | Kenya | verifyKenyaNationalId() | | 3 | Ghana | verifyGhanaInternationalPassport() | | 4 | Uganda | verifyUgandaBusiness() | | 5 | South Africa | verifySouthAfricaNationalIdentity() | | 6 | Sierra Lone | verifySierraLoneDriversLicense() | | 7 | Rwanda | verifyRwandaNID() |

Prembly General Verification

import React, { useState } from "react";
import { PremblyGeneralVerification } from "prembly-pass";

const config = {
  x_api_key: "YOUR_X_API_KEY",
  app_id: "YOUR_APP_ID",
  environment: "test", //'test' or 'live'
};

const premblyGeneralVerification = new PremblyGeneralVerification(config);

const App = () => {
  const [emailVerificationResult, setEmailVerificationResult] = useState(null);
  const [vehicleVerificationResult, setVehicleVerificationResult] =
    useState(null);

  const handleEmailVerification = async () => {
    try {
      const response = await premblyGeneralVerification.emailVerification(
        "[email protected]"
      );
      console.log(response);
      setEmailVerificationResult(response);
    } catch (error) {
      console.error(error);
    }
  };

  const handleVehicleVerification = async () => {
    try {
      const response = await premblyGeneralVerification.vehicleVerification(
        "AAA00000000"
      );
      console.log(response);
      setVehicleVerificationResult(response);
    } catch (error) {
      console.error(error);
    }
  };

  return (
    <div>
      <h2>Email Verification</h2>
      <button onClick={handleEmailVerification}>Verify Email</button>
      {emailVerificationResult && (
        <div>
          <h3>Email Verification Result:</h3>
          <pre>{JSON.stringify(emailVerificationResult.data)}</pre>
        </div>
      )}

      <h2>Vehicle Verification</h2>
      <button onClick={handleVehicleVerification}>Verify Vehicle number</button>
      {vehicleVerificationResult && (
        <div>
          <h3>vehicle Verification Result:</h3>
          <pre>{JSON.stringify(vehicleVerificationResult.data)}</pre>
        </div>
      )}
    </div>
  );
};

export default App;

Note: Replace "your-x-api-key" and "your-app-id" with your actual credentials.

Prembly Document Verification

import React from "react";
import { PremblyDocumentVerification } from "prembly-pass";

const config = {
  x_api_key: "YOUR_X_API_KEY",
  app_id: "YOUR_APP_ID",
  environment: "test", // 'test' or 'live'
};

const premblyDocumentVerification = new PremblyDocumentVerification(config);

function App() {
  const handleDocumentVerification = async () => {
    const response = await premblyDocumentVerification.documentVerification(
      "PP",
      "NG",
      "Base 64 url"
    );
    console.log(response);
  };

  return (
    <div>
      <h1>Document Verification app</h1>
      <button onClick={handleDocumentVerification}>Verify Document</button>
    </div>
  );
}

export default App;

Note: Replace "your-x-api-key" and "your-app-id" with your actual credentials.

Prembly Global Business Verification

import { PremblyGlobalBusinessVerification } from "prembly-pass";

const config = {
  x_api_key: "your-x-api-key",
  app_id: "your-app-id",
  environment: "test", // 'test' or 'live'
};

const premblyGlobalBusinessVerification = new PremblyGlobalBusinessVerification(
  config
);

const { companySearchWithName } = premblyGlobalBusinessVerification;

const App = () => {
  const [searchResult, setSearchResult] = useState(null);
  const [companyName, setCompanyName] = useState("");
  const [countryCode, setCountryCode] = useState("");

  const handleSearch = async () => {
    try {
      const response = await companySearchWithName(companyName, countryCode);
      console.log(response);
      setSearchResult(response);
    } catch (error) {
      console.error(error);
    }
  };

  return (
    <div>
      <h2>Business Verification</h2>
      <label>
        Company Name:
        <input
          type="text"
          value={companyName}
          onChange={(e) => setCompanyName(e.target.value)}
        />
      </label>
      <label>
        Country Code:
        <input
          type="text"
          value={countryCode}
          onChange={(e) => setCountryCode(e.target.value)}
        />
      </label>
      <button onClick={handleSearch}>Search</button>
      {searchResult && (
        <div>
          <h3>Search Result:</h3>
          <pre>{JSON.stringify(searchResult, null, 2)}</pre>
        </div>
      )}
    </div>
  );
};

export default App;

Note: Replace "your-x-api-key" and "your-app-id" with your actual credentials.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author: Olowoniyi Daniel
Twitter - link
Github - link