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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i read.i

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • soufii