read.i

0.0.1 • Public • Published

###read.i

I need a simplify terminal read() in async world

  var read = require('read.i');

  read.encoding = 'base64';
  read(function (input) {
    console.log(input);
    read.encoding = 'hex';
    read(function (input) {
      console.log(input);
      read.encoding = 'utf8';
      read(function (input) {
        console.log(input);
      });
    });
  });

/read.i/

    Package Sidebar

    Install

    npm i read.i

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • soufii