-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Yavorsky chrome to electron #8
Conversation
@Kilian awesome, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
README.md
Outdated
@@ -34,6 +34,25 @@ console.log(versions['1.4.11']); | |||
// returns "53.0.2785.143" | |||
``` | |||
|
|||
#### chromiumVersions | |||
An object with all _major_ Chromium versions as keys and their respective major Electron version as string value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
values ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reworded to remove the ambiguity (thanks @paulchaplin!)
.replace(/,/g, ",\n\t") | ||
.replace(/{/g, "{\n\t") | ||
.replace(/}/g, "\n}"); | ||
const makePrintable = mapping => JSON.stringify(mapping, null, "\t"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
README.md
Outdated
@@ -17,7 +17,7 @@ var e2c = require('electron-to-chromium'); | |||
The Electron-to-Chromium object has 4 properties to use: | |||
|
|||
#### versions | |||
An object with all _major_ Electron versions as keys and their respective major Chromium version as string value. | |||
An object of key-value pairs of a _major_ Electron version as the key, and the respective major Chromium version as the value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
An object of key-value pairs with a major Electron version as the key, and the respective major Chromium version as the value.
Or even more succinctly:
An object mapping a major Electron version to its respective major Chromium version.
Add a chromium-to-electron set of functions, continuing on from #6.
cc @yavorsky