index.js
function checkHeaderFromStream(file, ctx) {
		file.contents.pipe(es.wait(function (err, data) {
			if (err) {
				throw err;
			}

			var bufferFile = new File({
				path: file.path,
				contents: data
			});

			checkHeaderFromBuffer(bufferFile, ctx);
		}));
	}
function checkHeaderFromStream(file, ctx) {
		file.contents.pipe(es.wait(function (err, data) {
			if (err) {
				throw err;
			}

			var bufferFile = new File({
				path: file.path,
				contents: data
			});

			checkHeaderFromBuffer(bufferFile, ctx);
		}));
	}
function checkHeaderFromStream ( file , ctx ) { file . contents . pipe ( es . wait ( function ( err , data ) { if ( err ) { throw err ; } var bufferFile = new File ( { path : file . path , contents : data } ) ; checkHeaderFromBuffer ( bufferFile , ctx ) ; } ) ) ; }
Check header from stream.

@param {object} file - current file from stream.
@param {object} ctx - context.

@returns {string[]} file in string[] format.
Check header from stream .