{"versions":{"1.2.0":{"name":"electron-is-dev","version":"1.2.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo && tsd"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"c9b844127f350cde547ca4a0ac8f6849cfa07f22","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@1.2.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2e5cea0a1b3ccf1c86f577cee77363ef55deb05e","size":1760,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-1.2.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_1.2.0_1586098807459_0.8760335422573791"},"_hasShrinkwrap":false,"publish_time":1586098807608,"_cnpm_publish_time":1586098807608,"contributors":[]},"1.1.0":{"name":"electron-is-dev","version":"1.1.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo && tsd"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"84e3851e6a98abf3c165d287659c0ec0c486aa2e","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@1.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b15a2a600bdc48a51a857d460e05f15b19a2522c","size":1703,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-1.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_1.1.0_1554965967201_0.7377821565127267"},"_hasShrinkwrap":false,"publish_time":1554965967326,"_cnpm_publish_time":1554965967326,"contributors":[]},"1.0.1":{"name":"electron-is-dev","version":"1.0.1","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"^0.23.0"},"gitHead":"05ae239da8801ea2fbf332706ea9d95eb43b1a45","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6e0a184736fe7aea77d18210b0b0f6a02402c4bc","size":1621,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-1.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_1.0.1_1537381571081_0.946837743169775"},"_hasShrinkwrap":false,"publish_time":1537381571160,"_cnpm_publish_time":1537381571160,"contributors":[]},"1.0.0":{"name":"electron-is-dev","version":"1.0.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"^0.23.0"},"gitHead":"a45f2ef1d98c219c6ffc5000a82ca779d3a97ac9","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6cf9b8bbfebfcdcadf3899de2be7042030e3603d","size":1571,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-1.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_1.0.0_1537337330283_0.3937076989100401"},"_hasShrinkwrap":false,"publish_time":1537337330437,"_cnpm_publish_time":1537337330437,"contributors":[]},"0.3.0":{"name":"electron-is-dev","version":"0.3.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"files":["index.js"],"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"*"},"xo":{"esnext":true,"envs":["node","browser"]},"gitHead":"727cdb4cf3ef243a28743fcce07f45cf6bcb6666","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@0.3.0","_shasum":"14e6fda5c68e9e4ecbeff9ccf037cbd7c05c5afe","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"14e6fda5c68e9e4ecbeff9ccf037cbd7c05c5afe","size":1610,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-0.3.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev-0.3.0.tgz_1500832885370_0.3246509493328631"},"directories":{},"publish_time":1500832886332,"_hasShrinkwrap":false,"_cnpm_publish_time":1500832886332,"contributors":[]},"0.2.0":{"name":"electron-is-dev","version":"0.2.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"files":["index.js"],"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"*"},"xo":{"esnext":true,"envs":["node","browser"]},"gitHead":"03f4f64e541d5125e1aa6be1bb95024500e7e8c7","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@0.2.0","_shasum":"4bd0457a43327266de6fbdf29a5a65852f32bef2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4bd0457a43327266de6fbdf29a5a65852f32bef2","size":1624,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-0.2.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev-0.2.0.tgz_1498844290871_0.6061347732320428"},"directories":{},"publish_time":1498844291858,"_cnpm_publish_time":1498844291858,"_hasShrinkwrap":false,"contributors":[]},"0.1.2":{"name":"electron-is-dev","version":"0.1.2","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"files":["index.js"],"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"*"},"xo":{"esnext":true,"envs":["node","browser"]},"gitHead":"7922aae5bb758ff0b0725fb6234cc8b85c5abf87","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@0.1.2","_shasum":"8a1043e32b3a1da1c3f553dce28ce764246167e3","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8a1043e32b3a1da1c3f553dce28ce764246167e3","size":1502,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-0.1.2.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/electron-is-dev-0.1.2.tgz_1471431206965_0.6807302981615067"},"directories":{},"publish_time":1471431208683,"_cnpm_publish_time":1471431208683,"_hasShrinkwrap":false,"contributors":[]},"0.1.1":{"name":"electron-is-dev","version":"0.1.1","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"files":["index.js"],"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"*"},"xo":{"esnext":true,"envs":["node","browser"]},"gitHead":"1588ae60cbb675713c3d3b33e2372be5c6797f2b","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@0.1.1","_shasum":"6163c29bc34d4818acf8087d3db3e04895c13ff8","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6163c29bc34d4818acf8087d3db3e04895c13ff8","size":1493,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-0.1.1.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/electron-is-dev-0.1.1.tgz_1463135283994_0.9996513896621764"},"directories":{},"publish_time":1463135287212,"_cnpm_publish_time":1463135287212,"_hasShrinkwrap":false,"contributors":[]},"0.1.0":{"name":"electron-is-dev","version":"0.1.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"scripts":{"test":"xo"},"files":["index.js"],"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"xo":"*"},"xo":{"esnext":true,"envs":["node","browser"]},"gitHead":"73e9c653eddbefc0261088f7e9d734da880b700a","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@0.1.0","_shasum":"f91fc1664a0ed9462376981c8c560294d91bd005","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f91fc1664a0ed9462376981c8c560294d91bd005","size":1475,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-0.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/electron-is-dev-0.1.0.tgz_1460132289693_0.2637037264648825"},"directories":{},"publish_time":1460132290213,"_cnpm_publish_time":1460132290213,"_hasShrinkwrap":false,"contributors":[]},"2.0.0":{"name":"electron-is-dev","version":"2.0.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"scripts":{"test":"xo && tsd"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"tsd":"^0.14.0","xo":"^0.38.1"},"gitHead":"33071482c2645634180eeed8116f6a2a410ab679","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@2.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"833487a069b8dad21425c67a19847d9064ab19bd","size":1744,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_2.0.0_1614499873902_0.6433448297261577"},"_hasShrinkwrap":false,"publish_time":1614499874118,"_cnpm_publish_time":1614499874118,"contributors":[]},"3.0.0":{"name":"electron-is-dev","version":"3.0.0","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && tsd"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"tsd":"^0.30.3","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"2e6b82d450499a256b06a423ee9cb80697e38e50","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@3.0.0","_nodeVersion":"21.5.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-IUM6X1lulOB0hr7YwLCjpHOFKDOR5iZ8O5Y8APbi0+A1/JmQpZKBL2rzkLWJd8ePX7OEaB/BpCPAP+cVsjmaZg==","shasum":"416e28d9d92be91a6f23e349f68dcef8d619538f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-3.0.0.tgz","fileCount":5,"unpackedSize":4279,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtE3pQt8rO3EgZcReVwyXjDX1mvWfSUcwUF8bn+P1bEAiEA+wPVF/kjAFybDpfebniPLGRUsopL5t8HhKbwl8fid0c="}]},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_3.0.0_1705153807687_0.20797181833219924"},"_hasShrinkwrap":false,"contributors":[]},"3.0.1":{"name":"electron-is-dev","version":"3.0.1","description":"Check if Electron is running in development","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/electron-is-dev.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && tsd"},"keywords":["electron","dev","development","mode","prod","production","detect","check","debug","app"],"devDependencies":{"tsd":"^0.30.3","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"f944066b8c8515c1066e8c970451e90177de9ea4","bugs":{"url":"https://github.com/sindresorhus/electron-is-dev/issues"},"homepage":"https://github.com/sindresorhus/electron-is-dev#readme","_id":"electron-is-dev@3.0.1","_nodeVersion":"21.5.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-8TjjAh8Ec51hUi3o4TaU0mD3GMTOESi866oRNavj9A3IQJ7pmv+MJVmdZBFGw4GFT36X7bkqnuDNYvkQgvyI8Q==","shasum":"1cbc79b1dd046787903acd357efdfab6549dc17a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/electron-is-dev/-/electron-is-dev-3.0.1.tgz","fileCount":5,"unpackedSize":4298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLEQVmXmyE5DsDboJnbnmwo1g2nxO4lFUP8c4kC2+NdAiB2ggd8BwS7NUj5sH2wOphpZkZC8/coYzp08DutagpzAA=="}]},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-is-dev_3.0.1_1705157916134_0.05722348482517026"},"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"3.0.1"},"name":"electron-is-dev","time":{"modified":"2024-06-12T02:39:56.191Z","created":"2022-01-26T20:58:39.979Z","1.2.0":"2020-04-05T15:00:07.608Z","1.1.0":"2019-04-11T06:59:27.326Z","1.0.1":"2018-09-19T18:26:11.160Z","1.0.0":"2018-09-19T06:08:50.437Z","0.3.0":"2017-07-23T18:01:26.332Z","0.2.0":"2017-06-30T17:38:11.858Z","0.1.2":"2016-08-17T10:53:28.683Z","0.1.1":"2016-05-13T10:28:07.212Z","0.1.0":"2016-04-08T16:18:10.213Z","2.0.0":"2021-02-28T08:11:14.118Z","3.0.0":"2024-01-13T13:50:07.869Z","3.0.1":"2024-01-13T14:58:36.274Z"},"readme":"# electron-is-dev\n\n> Check if [Electron](https://electronjs.org) is running in development\n\nUseful for enabling debug features only during development.\n\nThis package must be used from the Electron main process.\n\n## Install\n\n```sh\nnpm install electron-is-dev\n```\n\n*Requires Electron 28 or later.*\n\n## Usage\n\n```js\nimport isDev from 'electron-is-dev';\n\nif (isDev) {\n\tconsole.log('Running in development');\n} else {\n\tconsole.log('Running in production');\n}\n```\n\nYou can force development mode by setting the `ELECTRON_IS_DEV` environment variable to `1`.\n\n## FAQ\n\n### How is this different than [`app.isPackaged`](https://www.electronjs.org/docs/api/app#appispackaged-readonly)?\n\nThis package existed long before that property. The benefit of this package is that you can override the value using an environment variable.\n\n### How do I use this in the renderer process?\n\nYou can use [`contextBridge`](https://www.electronjs.org/docs/latest/api/context-bridge) in the [preload script](https://www.electronjs.org/docs/latest/tutorial/tutorial-preload) to manually expose the variable:\n\n```js\nimport {contextBridge} from 'electron';\nimport isDev from 'electron-is-dev';\n\ncontextBridge.exposeInMainWorld('isDev', isDev);\n```\n\nYou can then access it in `globalThis` from the renderer process:\n\n```js\nconsole.log(globalThis.isDev);\n```\n\n## Related\n\n- [electron-util](https://github.com/sindresorhus/electron-util) - Useful utilities for developing Electron apps\n- [electron-debug](https://github.com/sindresorhus/electron-debug) - Adds useful debug features to your Electron app","users":{}}