Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional stateName parameter to filter states results #81

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pkn4645
Copy link

@pkn4645 pkn4645 commented Apr 6, 2020

great project @ahmadawais 👍

I had a need to work with some individual state data and wanted to filter the results to save time. The change as implemented is very simple. I checked and it did not appear that the underlying API supported a state filter so I just did it on the client side.

I also added examples to the readme under the states section.

Hope this is helpful.

Questions or comments welcome.

thanks

pkn4645 added 5 commits April 4, 2020 12:59
added optional stateName parameter to getStates.js

to test:

node index.js states --stateName Tennessee

node index.js states --stateName "North Carolina"
- update readme with examples for single state
- clean up some changes
simplify code for state parameter
filter by state changes
@pkn4645
Copy link
Author

pkn4645 commented Apr 12, 2020

thoughts? feedback?

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant