# process-file **Repository Path**: mirrors_kevva/process-file ## Basic Information - **Project Name**: process-file - **Description**: Process a file and return the results as a Promise - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # process-file [![Build Status](https://travis-ci.org/kevva/process-file.svg?branch=master)](https://travis-ci.org/kevva/process-file) > Process a file and return the results as a Promise ## Install ``` $ npm install --save process-file ``` ## Usage ```js const csvParser = require('csv-parser'); const processFile = require('process-file'); processFile('unicorn.csv', csvParser()).then(data => { console.log(data); //=> [{foo: 'bar', unicorn: 'awesome'}] }); ``` ## API ### processFile(file, stream) Returns a `Promise` that resolves to your processed result. #### file Type: `string` `Buffer` File to process. #### stream Type: `object` Stream to process the file with. ## License MIT © [Kevin Mårtensson](https://github.com/kevva)