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

Yavorsky chrome to electron #8

Merged
merged 10 commits into from
Mar 28, 2017
Merged

Yavorsky chrome to electron #8

merged 10 commits into from
Mar 28, 2017

Conversation

Kilian
Copy link
Owner

@Kilian Kilian commented Mar 27, 2017

Add a chromium-to-electron set of functions, continuing on from #6.

cc @yavorsky

@Kilian Kilian mentioned this pull request Mar 27, 2017
@yavorsky
Copy link
Contributor

@Kilian awesome, thanks!

Copy link
Contributor

@yavorsky yavorsky left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

values ?

Copy link
Owner Author

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");
Copy link
Contributor

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.

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.

@Kilian Kilian merged commit 93a219d into master Mar 28, 2017
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.

None yet

3 participants