Giter Club home page Giter Club logo

console.qrcode's Introduction

console.qrcode

實作console.qrcode方法達成在Browser Console顯示QRCode圖片


方法參數

除了可以直接在console.qrcode方法中直接帶入文字輸出外,也可以使用qrcodejs中的參數。

declare interface Console {
    qrcode(text: string | { //可直接帶入文字,使用預設的設定產生QRCode
        text: string,
        width: number, //可設定圖片長寬
        height: number,
        colorDark?: string, //暗色
        colorLight?: string, //亮色
        correctLevel?: any, //容錯
    }): void;
}

演示

Imgur

參考

  1. console.image : 用以輸出圖片在Console
  2. qrcodejs : 產生QRCode圖片

console.qrcode's People

Contributors

edward-hsu-1994 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.