{"name":"electron-to-chromium","version":"1.5.232","keywords":["electron","chrome","chromium","browserslist","browserlist"],"author":{"name":"Kilian Valkhof"},"license":"ISC","_id":"electron-to-chromium@1.5.232","maintainers":[{"name":"kilianvalkhof","email":"kilian@kilianvalkhof.com"}],"homepage":"https://github.com/kilian/electron-to-chromium#readme","bugs":{"url":"https://github.com/kilian/electron-to-chromium/issues"},"dist":{"shasum":"3de180ee54c14c58d56a290f588eef3a934ebda6","tarball":"http://registry-npm.ywwl.com/electron-to-chromium/download/electron-to-chromium-1.5.232.tgz","fileCount":12,"integrity":"sha512-ENirSe7wf8WzyPCibqKUG1Cg43cPaxH4wRR7AJsX7MCABCHBIOFqvaYODSLKUuZdraxUTHRE/0A2Aq8BYKEHOg==","signatures":[{"sig":"MEQCICZrYN46uXYPjsA2YxAjqEv6ATryUjvE3VDA/kBbPZmTAiAuuDnza19/xzFsFreeQwiq1yQoBlo+mkJXqDpz75Wx1Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174495,"size":30854,"noattachment":false,"key":"/electron-to-chromium/-/electron-to-chromium-1.5.232.tgz"},"main":"index.js","gitHead":"5ebb5f31389e7f3e6f0f37bf4c07605ddc907558","scripts":{"test":"nyc ava --verbose","build":"node build.mjs","report":"nyc report --reporter=text-lcov > coverage.lcov && codecov","update":"node automated-update.js"},"_npmUser":{"name":"kilianvalkhof","email":"kilian@kilianvalkhof.com"},"repository":{"url":"git+https://github.com/kilian/electron-to-chromium.git","type":"git"},"_npmVersion":"8.19.4","description":"Provides a list of electron-to-chromium version mappings","directories":{},"_nodeVersion":"16.20.2","_hasShrinkwrap":false,"devDependencies":{"ava":"^5.1.1","nyc":"^15.1.0","codecov":"^3.8.2","shelljs":"^0.8.5","node-fetch":"^3.3.0","compare-versions":"^6.0.0-rc.1"},"_npmOperationalInternal":{"tmp":"tmp/electron-to-chromium_1.5.232_1759802545888_0.17065589583294805","host":"s3://npm-registry-packages-npm-production"},"readme":"### Made by [@kilianvalkhof](https://twitter.com/kilianvalkhof)\n\n#### Other projects:\n\n- 💻 [Polypane](https://polypane.app) - Develop responsive websites and apps twice as fast on multiple screens at once\n- 🖌️ [Superposition](https://superposition.design) - Kickstart your design system by extracting design tokens from your website\n- 🗒️ [FromScratch](https://fromscratch.rocks) - A smart but simple autosaving scratchpad\n\n---\n\n# Electron-to-Chromium [![npm](https://img.shields.io/npm/v/electron-to-chromium.svg)](https://www.npmjs.com/package/electron-to-chromium) [![npm-downloads](https://img.shields.io/npm/dm/electron-to-chromium.svg)](https://www.npmjs.com/package/electron-to-chromium) [![codecov](https://codecov.io/gh/Kilian/electron-to-chromium/branch/master/graph/badge.svg)](https://codecov.io/gh/Kilian/electron-to-chromium)[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium?ref=badge_shield)\n\nThis repository provides a mapping of Electron versions to the Chromium version that it uses.\n\nThis package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-preset-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat).\n\n**Supported by:**\n\n  <a href=\"https://m.do.co/c/bb22ea58e765\">\n    <img src=\"https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/SVG/DO_Logo_horizontal_blue.svg\" width=\"201px\">\n  </a>\n\n\n## Install\nInstall using `npm install electron-to-chromium`.\n\n## Usage\nTo include Electron-to-Chromium, require it:\n\n```js\nvar e2c = require('electron-to-chromium');\n```\n\n### Properties\nThe Electron-to-Chromium object has 4 properties to use:\n\n#### `versions`\nAn object of key-value pairs with a _major_ Electron version as the key, and the corresponding major Chromium version as the value.\n\n```js\nvar versions = e2c.versions;\nconsole.log(versions['1.4']);\n// returns \"53\"\n```\n\n#### `fullVersions`\nAn object of key-value pairs with a Electron version as the key, and the corresponding full Chromium version as the value.\n\n```js\nvar versions = e2c.fullVersions;\nconsole.log(versions['1.4.11']);\n// returns \"53.0.2785.143\"\n```\n\n#### `chromiumVersions`\nAn object of key-value pairs with a _major_ Chromium version as the key, and the corresponding major Electron version as the value.\n\n```js\nvar versions = e2c.chromiumVersions;\nconsole.log(versions['54']);\n// returns \"1.4\"\n```\n\n#### `fullChromiumVersions`\nAn object of key-value pairs with a Chromium version as the key, and an array of the corresponding major Electron versions as the value.\n\n```js\nvar versions = e2c.fullChromiumVersions;\nconsole.log(versions['54.0.2840.101']);\n// returns [\"1.5.1\", \"1.5.0\"]\n```\n### Functions\n\n#### `electronToChromium(query)`\nArguments:\n* Query: string or number, required. A major or full Electron version.\n\nA function that returns the corresponding Chromium version for a given Electron function. Returns a string.\n\nIf you provide it with a major Electron version, it will return a major Chromium version:\n\n```js\nvar chromeVersion = e2c.electronToChromium('1.4');\n// chromeVersion is \"53\"\n```\n\nIf you provide it with a full Electron version, it will return the full Chromium version.\n\n```js\nvar chromeVersion = e2c.electronToChromium('1.4.11');\n// chromeVersion is \"53.0.2785.143\"\n```\n\nIf a query does not match a Chromium version, it will return `undefined`.\n\n```js\nvar chromeVersion = e2c.electronToChromium('9000');\n// chromeVersion is undefined\n```\n\n#### `chromiumToElectron(query)`\nArguments:\n* Query: string or number, required. A major or full Chromium version.\n\nReturns a string with the corresponding Electron version for a given Chromium query.\n\nIf you provide it with a major Chromium version, it will return a major Electron version:\n\n```js\nvar electronVersion = e2c.chromiumToElectron('54');\n// electronVersion is \"1.4\"\n```\n\nIf you provide it with a full Chrome version, it will return an array of full Electron versions.\n\n```js\nvar electronVersions = e2c.chromiumToElectron('56.0.2924.87');\n// electronVersions is [\"1.6.3\", \"1.6.2\", \"1.6.1\", \"1.6.0\"]\n```\n\nIf a query does not match an Electron version, it will return `undefined`.\n\n```js\nvar electronVersion = e2c.chromiumToElectron('10');\n// electronVersion is undefined\n```\n\n#### `electronToBrowserList(query)` **DEPRECATED**\nArguments:\n* Query: string or number, required. A major Electron version.\n\n_**Deprecated**: Browserlist already includes electron-to-chromium._\n\nA function that returns a [Browserslist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.\n\nIf you provide it with a major Electron version, it will return a Browserlist query string that matches the Chromium capabilities:\n\n```js\nvar query = e2c.electronToBrowserList('1.4');\n// query is \"Chrome >= 53\"\n```\n\nIf a query does not match a Chromium version, it will return `undefined`.\n\n```js\nvar query = e2c.electronToBrowserList('9000');\n// query is undefined\n```\n\n### Importing just versions, fullVersions, chromiumVersions and fullChromiumVersions\nAll lists can be imported on their own, if file size is a concern.\n\n#### `versions`\n\n```js\nvar versions = require('electron-to-chromium/versions');\n```\n\n#### `fullVersions`\n\n```js\nvar fullVersions = require('electron-to-chromium/full-versions');\n```\n\n#### `chromiumVersions`\n\n```js\nvar chromiumVersions = require('electron-to-chromium/chromium-versions');\n```\n\n#### `fullChromiumVersions`\n\n```js\nvar fullChromiumVersions = require('electron-to-chromium/full-chromium-versions');\n```\n\n## Updating\nThis package will be updated with each new Electron release.\n\nTo update the list, run `npm run build.js`. Requires internet access as it downloads from the canonical list of Electron versions.\n\nTo verify correct behaviour, run `npm test`.\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium?ref=badge_large)\n","publish_time":1759802546146,"_cnpm_publish_time":1759802546146,"dist-tags":{"latest":"1.5.492"}}