nodeiodeprecated

A collection of asynchronous Node.js functions.

Usage no npm install needed!

<script type="module">
  import nodeio from 'https://cdn.skypack.dev/nodeio';
</script>

README

nodeio

A collection of asynchronous Node.js functions.

license npm build

Installation

npm install nodeio --save

API

askQuestionAsync(query[, options])

This function returns a Promise object.

import askQuestionAsync from 'nodeio/lib/askQuestionAsync';

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

listDirectoryAsync(path)

This function returns a Promise object.

import listDirectoryAsync from 'nodeio/lib/listDirectoryAsync';

readFileAsync(path[, encoding])

This function returns a Promise object.

import readFileAsync from 'nodeio/lib/readFileAsync';

encoding default value: 'utf8'

readRemoteFileAsync(url)

This function returns a Promise object.

import readRemoteFileAsync from 'nodeio/lib/readRemoteFileAsync';

testExistenceAsync(path)

This function returns a Promise object.

import testExistenceAsync from 'nodeio/lib/testExistenceAsync';