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);
      });
    });
  });

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i read.i

      Weekly Downloads

      0

      Version

      0.0.1

      License

      MIT

      Last publish

      Collaborators

      • soufii