Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add win32 to platform.js #369

Merged
merged 1 commit into from
Feb 24, 2022
Merged

Conversation

sarturodev
Copy link
Contributor

Adding 'win32':'windows' key-value in the platform.js file allows to detect the system platform as part of the default configuration (for windows users). The 'win32' key is provided by the 'os' core module api.

Description

I've added a key-value pair: "win32":"windows" inside the folders object in the /lib/plaform.js file, this change allows tldr-node-client to identify the windows platform (as default configuration). It solves the issue #368 .

Checklist

Please review this checklist before submitting a pull request.

  • Code compiles correctly
  • Created tests, if possible
  • All tests passing (npm run test:all)
  • Extended the README / documentation, if necessary

Adding 'win32':'windows' key-value in the platform.js file allows to detect the system platform as part of the default configuration (for windows users).  The key 'win32' is provided by the 'os' core module api.
Copy link
Contributor

@marchersimon marchersimon left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@navarroaxel navarroaxel changed the title Add 'win32':'windows' key-value to platform.js Add win32 to platform.js Feb 24, 2022
@navarroaxel navarroaxel merged commit 421851d into tldr-pages:master Feb 24, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants