/node-apis

These are node.js files to run API calls in the console: Includes try/catch errors and process.argv to handle multiple answers at once.

Primary LanguageJavaScript

Title

{Description Here}, {DATE}

By Kyle Lange

screenshot

Learnings

  • learn to use response.on data.toString to make object response a string to print.

  • learned process.argv function to input names in the console to give the user a custom response to her/his inputs

  • learned to alert for parsing errors

  • learned to write try.catch error msgs.

  • learned to account for and translate status codes for the user.

Setup/Installation Requirements

  1. Download this repo using your terminal:

    git clone node-apis

    cd node-apis

  2. Run one of these terminal-based applications:

    type node file-name.js write the info you are searching for here

    Ex: node weather.js Portland_OR

Known Bugs

There are no known bugs as of the last commit. Please send an ISSUE on github in the repository if you see something I have not.

Support and contact details

For questions or comments, please email Kyle here.

Technologies Used

  • Node.js

License

Copyright (c) 2016 Kyle Lange

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.