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

More Doc Please #7

Open
mgifford opened this issue Jun 27, 2017 · 6 comments
Open

More Doc Please #7

mgifford opened this issue Jun 27, 2017 · 6 comments

Comments

@mgifford
Copy link

I would love some simple explanation of how to run this from the command line. Instructions to install it is good, but instructions to actually run it afterwards is better.

Thanks!

@sprice
Copy link
Owner

sprice commented Jun 27, 2017

@mgifford Great request! Thanks. I'll take a look at this some time this week and ping you when it's updated.

@mgifford
Copy link
Author

Thanks! I'm basically just trying to run through a CSV of postal codes and trying to avoid having to do 300 or so cut/paste routines...

@sprice
Copy link
Owner

sprice commented Jun 28, 2017

Hi @mgifford. I've taken a further look at this. It's clear that the README needs some improvement.

At the moment this node module isn't used as a command line tool, but rather a module for a node program (which could be built out as a command line tool).

Here's a full example of how it can be used (using a CSV of postal codes).

https://gist.github.com/sprice/62464049507d2690c0ffcaa7ed1333f6

What's your specific use case? Would something like the gist above help at all.

@mgifford
Copy link
Author

This was very helpful. The gist you put up was exactly what I was looking for.

I outlined some of the problems I ran into @sprice but not sure if these are things that are fixable (or that you have time to fix).

The gist was definitely helpful. Just more to do still until there's something that's easily usable. Thanks!

@sprice
Copy link
Owner

sprice commented Jun 30, 2017

It sounds like what would be helpful would be a command line tool for the represent api.

A crude example:

$ npm install -g represent-cli
$ represent --input-file post-codes.csv --input-type postal-code --output-type csv --output-field MP --output-file mp-list.csv

^^ make sure to scroll right to see the whole command 😃

@mgifford
Copy link
Author

mgifford commented Jul 1, 2017

That would be very handy!

Would be useful also if when it hit an error if it just spit out the line in the CSV that produced the error, and then just move onto the next item in the list.

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

No branches or pull requests

2 participants