text-to-db64

    0.0.6 • Public • Published

    text to database64

    install lib

    npm install text-to-db64
    

    to use it

    // 目前做了Helvetica, yahei两种字体的垂直居中调整
    // defaultConfig
    var config = {
        width: 80,
        height: 80,
        bgColor: '#000',
        color: '#fff',
        fontSize: 30,
        fontFamily: 'Helvetica',
        text: 'text'
    };
    
    var database64 = textToDatabase(config);
    

    Install

    npm i text-to-db64

    DownloadsWeekly Downloads

    6

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    5.51 kB

    Total Files

    4

    Last publish

    Collaborators

    • conquering3