Socket
Socket
Sign inDemoInstall

bioid.id

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bioid.id

Official Bio ID library for interacting with the Bio ID API


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

Readme

Source

Bio

Bio ID NPM Package Statistics
  • NPM package that gets information from bio id official API
  • Useful for websites where users can input any bio id and get user info
  • Supports the Promise-API, you will be able to use .then, .catch, etc...

Check out or website Bio.

Installation from NPM

npm i bioid.id

Usage

  • user(id, options) - Get a user
    • id: (REQUIRED) User Bio ID or other ID from options
    • options: (OPTIONAL) Options object can have (id_type) propertie(s)
    • options.id_type: (OPTIONAL) id_type option sets search by a specific ID type, can be one of (user, discord), default is "user"

Examples

(Using Await)

const bio = require('bioid.id');

async function getUserData(){
	let user = await bio.user('000000000000');
	console.log(user);
}
getUserData(); // calling the function

(Using .then function)

const bio = require('bioid.id');

bio.user('000000000000').then(user => {
	console.log(user);
})

(Validation)

const bio = require('bioid.id');

bio.user('000000000000').then(user => {
	if(user){
		console.log(user); // user found
	}else{
		console.log("User not found");
	}
})

Contributing

© Bio, 2021 - 2022 | TARIQ (contact@itariq.dev)

Keywords

FAQs

Last updated on 13 Mar 2022

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