Server IP : 85.214.239.14 / Your IP : 3.19.68.41 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/task/3/root/proc/3/cwd/usr/lib/node_modules/npm/node_modules/qrcode-terminal/ |
Upload File : |
# QRCode Terminal Edition [![Build Status][travis-ci-img]][travis-ci-url] > Going where no QRCode has gone before. ![Basic Example][basic-example-img] # Node Library ## Install Can be installed with: $ npm install qrcode-terminal and used: var qrcode = require('qrcode-terminal'); ## Usage To display some data to the terminal just call: qrcode.generate('This will be a QRCode, eh!'); You can even specify the error level (default is 'L'): qrcode.setErrorLevel('Q'); qrcode.generate('This will be a QRCode with error level Q!'); If you don't want to display to the terminal but just want to string you can provide a callback: qrcode.generate('http://github.com', function (qrcode) { console.log(qrcode); }); If you want to display small output, provide `opts` with `small`: qrcode.generate('This will be a small QRCode, eh!', {small: true}); qrcode.generate('This will be a small QRCode, eh!', {small: true}, function (qrcode) { console.log(qrcode) }); # Command-Line ## Install $ npm install -g qrcode-terminal ## Usage $ qrcode-terminal --help $ qrcode-terminal 'http://github.com' $ echo 'http://github.com' | qrcode-terminal # Support - OS X - Linux - Windows # Server-side [node-qrcode][node-qrcode-url] is a popular server-side QRCode generator that renders to a `canvas` object. # Developing To setup the development envrionment run `npm install` To run tests run `npm test` # Contributers Gord Tanner <gtanner@gmail.com> Micheal Brooks <michael@michaelbrooks.ca> [travis-ci-img]: https://travis-ci.org/gtanner/qrcode-terminal.png [travis-ci-url]: https://travis-ci.org/gtanner/qrcode-terminal [basic-example-img]: https://raw.github.com/gtanner/qrcode-terminal/master/example/basic.png [node-qrcode-url]: https://github.com/soldair/node-qrcode