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

Create a unix-friendly bin #1

Closed
bloodyowl opened this issue Oct 11, 2016 · 1 comment
Closed

Create a unix-friendly bin #1

bloodyowl opened this issue Oct 11, 2016 · 1 comment

Comments

@bloodyowl
Copy link

The API should be installable using npm and runnable as a command line :

$ lsdjcrunch crunch ...options
$ lsdjcrunch patch ...options
$ lsdjcrunch crunch-patch ...options
$ lsdjcrunch export ...options

Also, commands should have a --output or -o option for the output file. If not provided, the output file should be piped to stdout

const output = (file: Stream, options) {
  file
    .pipe(options.output ? fs.createWriteStream(options.output) : process.stdout)
}
@iLambda
Copy link
Owner

iLambda commented Oct 12, 2016

I'll look into this for the next release.

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