Express application that reads an emplooyes CSV data and return a JSON of the specific emplooye.
This project is part of the Enroute | Rockstars G5 apprenticeship program 2020.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
The project consist on a Node application that reads and outputs data from a CSV file that match certain criteria or scenarios.
Required features:
- Read user input from CLI.
- Identify the first argument as the ID of the employee.
- Identify a second argument as a property of the employee.
- Output the required information.
Additional features:
- Can be converted into an executable script to run without prepending
the
file_name
with commandnode
. - Identifies more than one property.
- Outputs all information if no parameters are given.
To get a local copy up and running follow these simple example steps.
To run this script your local environment should have at least these installations.
- Clone the repository.
git clone https://github.com/SaulPuentes/employees-csv-express.git
- Change to the newly cloned directory.
cd employees-csv-express/
- Run the next command. See Usage to learn how to use it.
node index.js
See the open issues for a list of proposed features (and known issues).
- Queries only work with non-duplicate entries in the data. If there are duplicated values, the application will only retrieve the information from the last element found.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Saul Puentes
- LinkedIn: @saul-puentes
- GitHub: @SaulPuentes
- Twitter: @saulcodes
- E-mail: saul.puentess@gmail.com
Project Link: Employee CSV Node
- Enroute
- Rodrigo Rodriguez | Enroute Systems