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

fix #2: support stdin #3

Merged
merged 2 commits into from
Aug 28, 2017
Merged

Conversation

tjconcept
Copy link
Collaborator

No description provided.

@tjconcept
Copy link
Collaborator Author

Some of the changes to package-lock.json seems to be unrelated and should probably be on master before merging this.

@haltcase
Copy link
Owner

Awesome! I'll review this soon, thanks for working on it.

Some of the changes to package-lock.json seems to be unrelated and should probably be on master before merging this.

That lock file is really turning out to be more trouble than it's worth a lot of times. Might just get rid of it for this particular project.

@tjconcept
Copy link
Collaborator Author

I usually don't have lock files for libraries and keep them in "top level" apps only (e.g. something that is deployed).

@haltcase
Copy link
Owner

haltcase commented Aug 28, 2017

I usually don't have lock files for libraries and keep them in "top level" apps only (e.g. something that is deployed).

Yeah that's what I'm finding also. We're gonna get rid of it here. I'll leave that for after this merges.

cli.js Outdated
@@ -33,5 +28,11 @@ if (flags.columns.length > 0) {
options.columns = flags.align.map(align => ({ align }))
}

// write results to stdout
console.log(convert(input, options))
stdin.then(function( stdin ){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are just style nitpicks if you can get to them. Could you make this an arrow function? I also don't necessarily like shadowing variables if we can help it so let's rename the param to input since that's freed up now.

stdin.then(input => {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind style nitpicking. I'd do the same.

@tjconcept
Copy link
Collaborator Author

(I expect a squash before merging)

@haltcase haltcase merged commit f0d41d8 into haltcase:master Aug 28, 2017
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.

None yet

2 participants