nodeio

A collection of asynchronous Node.js functions.

nodeio

A collection of asynchronous Node.js functions.

npm install nodeio --save

This function returns a Promise object.

import askQuestionAsync from 'nodeio/lib/askQuestionAsync';

options default value: {input: process.stdin, output: process.stdout}

This function returns a Promise object.

import listDirectoryAsync from 'nodeio/lib/listDirectoryAsync';

This function returns a Promise object.

import readFileAsync from 'nodeio/lib/readFileAsync';

encoding default value: 'utf8'

This function returns a Promise object.

import readRemoteFileAsync from 'nodeio/lib/readRemoteFileAsync';

This function returns a Promise object.

import testExistenceAsync from 'nodeio/lib/testExistenceAsync';