1.0.2 • Published 4 years ago

ct_blade v1.0.2

Weekly downloads
9
License
-
Repository
-
Last release
4 years ago

A tiny verification code count down function after being sent

Using npm:

$ npm i ct_blade --save

Guide

    import ctBlade from "ct_blade";

    // when your send a verification code
    ctBlade({
        key: "your_ct_key",
        cb: (res) => {
            console.log('ct res:', res);
            this.isCounting = !res.finish;
            this.rtCount = res.count;
        },
    });

    // when check old countdown (trigger param is isCheck)
    ctBlade({
        key: "your_ct_key",
        isCheck: true, //run countdown or checkout countdown (true means check)
        debug: true,
        cb: (res) => {
            console.log('ct res:', res);
            this.isCounting = !res.finish;
            this.rtCount = res.count;
        },
    });
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago