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

Use original file name for exports when possible #688

Merged
merged 2 commits into from Jul 8, 2019

Conversation

karaggeorge
Copy link
Member

Fixes #673

Screenshot 2019-07-08 11 22 10

main/export.js Outdated
@@ -1,6 +1,6 @@
'use strict';

const path = require('path');
const {basename, parse} = require('path');
Copy link
Member

Choose a reason for hiding this comment

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

Generally don't use destructuring for path. Most of the names are too generic without context and that makes the code harder to read. parse could mean so many things, but when you see path.parse it's much clearer.

Copy link
Member Author

Choose a reason for hiding this comment

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

That makes a lot of sense 👍

@sindresorhus sindresorhus merged commit e70a900 into master Jul 8, 2019
@sindresorhus sindresorhus deleted the use-original-file-name branch July 8, 2019 16:23
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.

When opening a video and exporting to gif, filename doesn't stay the same
2 participants