New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@pekings/verification-code

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pekings/verification-code

Verification Code Library

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

verification code library

Install

Using npm to install

npm install @pekings/verification-code --save

Using yarn to install

yarn add @pekings/verification-code

Quickstart

// 引入lib
import VerificationCode from "@pekings/verification-code";

<canvas width="200" height="100" id="v-code"></canvas>;

const vCode = new VerificationCode(
  document.getElementById("v-code"),
  (code) => {
    // 接收每次生成的随机验证码
    console.log(code);
  }
);
// 开启渲染
vCode.draw();

Keywords

Library

FAQs

Package last updated on 15 Apr 2024

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