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

Only require the necessary os library #109

Merged
merged 4 commits into from
Jan 25, 2021
Merged

Only require the necessary os library #109

merged 4 commits into from
Jan 25, 2021

Conversation

fregante
Copy link
Contributor

@fregante fregante commented Jan 25, 2021

The Linux lib has 30+ dependencies that should not be required at all on other OSs. I imagine that this unnecessarily slows down other OS.

Perhaps the downside of the current code is that if you use trash as a library, the require code is called at every trash() call. If that's not ideal, I could look into "require once" logic.

Related: sindresorhus/meow#104

@fregante fregante marked this pull request as draft January 25, 2021 01:40
@fregante fregante marked this pull request as ready for review January 25, 2021 01:55
@sindresorhus sindresorhus merged commit 162501c into sindresorhus:main Jan 25, 2021
@fregante fregante deleted the patch-1 branch January 25, 2021 04:31
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.

2 participants