Coder Social home page Coder Social logo

swish-qr-cli's Introduction

swish-qr-cli Build Status

Generate a Swish QR code

Install

$ npm install --global swish-qr-cli

Usage

Run without options for an interactive interface.

$ swish-qr --help

  Generate a Swish QR code

  Usage
    $ swish-qr [options]

  Options
    -a, --amount <amount>    The amount of money to send
    -i, --image              Show QR code in the terminal
    -l, --lock <field>       Lock fields from user input
    -m, --message <message>  The message to send
    -n, --number <number>    The recipient

  Example
    $ swish-qr
    $ swish-qr --number 1230000000 --amount 150 --message "Lorem ipsum" --lock amount --lock number

Related

License

MIT © Andreas Gillström

swish-qr-cli's People

Contributors

kevva avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

swish-qr-cli's Issues

TypeError: base64 is not a function

➜ swish-qr
? What is the recipients phone number? 123000000
? How much money do you want to send? 123
? Do you want to send a message? Hello
? Which fields do you want to lock? Number, Amount
TypeError: base64 is not a function
    at Function.from (native)
    at Function.from (native)
    at generateImage (/home/anton/.nvm/versions/node/v5.3.0/lib/node_modules/swish-qr-cli/cli.js:40:17)
    at /home/anton/.nvm/versions/node/v5.3.0/lib/node_modules/swish-qr-cli/cli.js:73:4
    at process._tickCallback (node.js:382:9)
➜ swish-qr --version
1.0.1

➜ node -v
v5.3.0

➜ npm -v               
3.5.3

➜ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.10
Release:	16.10
Codename:	yakkety

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.