Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

request: output option #10

Closed
shellscape opened this issue Mar 9, 2019 · 4 comments
Closed

request: output option #10

shellscape opened this issue Mar 9, 2019 · 4 comments

Comments

@shellscape
Copy link

Ahoy. Thanks for putting this module together. I'm intending to use it to generate an mjs file from a CommonJS in an automated prepublish step. One drawback right now is that I can't specify a file to output to; the file I specify to convert is just overwritten. It's a mild inconvenience, as I just have to copy the file to the new extension before running cjs-to-es6.

So being able to specify --out or some such would be keen.

@nolanlawson
Copy link
Owner

Thanks for opening this issue! I'm no longer maintaining this library, so I've noted that in the instance description. PRs welcome though. :)

@nolanlawson
Copy link
Owner

This is an old issue, but I would recommend looking at how cjs-to-es6 works and writing your own tool to do what you describe. Thanks!

@shellscape
Copy link
Author

I'd suggest archiving the repo or placing an 'unmaintained' notice in the readme as well. It's also helpful to publish a new version with the updated readme, or mark the package as deprecated.

@nolanlawson
Copy link
Owner

Great suggestion, thank you.

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

No branches or pull requests

2 participants