function stdin() {
	var clbk = arguments[ arguments.length-1 ];
	if ( !isFunction( clbk ) ) {
		throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', clbk ) );
	}
	setTimeout( onTimeout, 0 );

	/**
	* Callback invoked upon a timeout.
	*
	* @private
	*/
	function onTimeout() {
		clbk( new Error( 'invalid operation. The environment does not support reading from `stdin`.' ) );
	}
}
Browser shim.

@private
@param {(string|null)} [encoding] - string encoding
@param {Callback} clbk - callback to be invoked upon completion
@throws {TypeError} callback argument must be a function

@example
function onRead( error ) {
    if ( error ) {
        return console.error( error.message );
    }
}

stdin( onRead );