New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hkid

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hkid

Generate and Validate HKID

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
decreased by-35.14%
Maintainers
1
Weekly downloads
 
Created
Source

hkid

Generate and Validate HKID

Node.js CI codecov FOSSA Status

Installation

yarn add hkid

Usage

import * as hkid from "hkid";

// generate valid HKID randomly
console.log(hkid.random());

// validate HKID
console.log(hkid.validate("h349781(0)")); // false
console.log(hkid.validate("H349781(1)")); // true
console.log(hkid.validate("h349781(1)")); // true, case doesn't matter
console.log(hkid.validate("H3497811")); // true, brackets is optional

License

FOSSA Status

Keywords

FAQs

Package last updated on 07 Aug 2021

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