{"_id":"env-editor","_rev":"4521830","name":"env-editor","description":"Get metadata on the default editor or a specific editor","dist-tags":{"latest":"1.3.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-09T13:08:27.000Z","created":"2017-05-04T14:07:41.165Z","1.3.0":"2025-09-10T18:43:39.887Z","1.2.0":"2025-09-09T11:44:17.072Z","1.1.0":"2022-04-24T19:10:23.356Z","1.0.0":"2021-08-27T23:07:50.254Z","0.5.0":"2021-02-06T09:03:33.386Z","0.4.2":"2021-01-31T07:22:35.709Z","0.4.1":"2019-09-18T05:33:42.485Z","0.4.0":"2019-04-18T02:28:39.815Z","0.3.1":"2017-05-07T09:08:39.969Z","0.3.0":"2017-05-07T08:12:41.793Z","0.2.0":"2017-05-07T07:47:52.886Z","0.1.1":"2017-05-04T20:26:17.952Z","0.1.0":"2017-05-04T14:07:41.165Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"versions":{"1.3.0":{"name":"env-editor","version":"1.3.0","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"_id":"env-editor@1.3.0","gitHead":"3f6aea10ff53910c877b1bf73a8e0c954a5fbf11","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"bfcd8b10515962f4e96f706c1425f659d828be14","size":3295,"noattachment":false,"key":"/env-editor/-/env-editor-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-1.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/env-editor_1.3.0_1757529819671_0.20830263497030743"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-10T18:43:39.887Z","publish_time":1757529819887,"_source_registry_name":"default","_cnpm_publish_time":1757529819887},"1.2.0":{"name":"env-editor","version":"1.2.0","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"_id":"env-editor@1.2.0","gitHead":"526f8d58fc7088138a7254712adc8f8bdbc5458b","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"3013a874c19c8c82641d49dd1eb4e33ba4c68dda","size":3273,"noattachment":false,"key":"/env-editor/-/env-editor-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-1.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/env-editor_1.2.0_1757418256862_0.18572047373817813"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-09T11:44:17.072Z","publish_time":1757418257072,"_source_registry_name":"default","_cnpm_publish_time":1757418257072},"1.1.0":{"name":"env-editor","version":"1.1.0","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"0674c20f78471517f987d7ec0e43830b5be9d5d6","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@1.1.0","_nodeVersion":"14.19.1","_npmVersion":"8.3.2","dist":{"shasum":"bd510b6cb1528a64b17273aaeba272c050e786e9","size":3099,"noattachment":false,"key":"/env-editor/-/env-editor-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-1.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-editor_1.1.0_1650827423139_0.6048085441134079"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-24T19:10:30.056Z","publish_time":1650827423356,"_cnpm_publish_time":1650827423356},"1.0.0":{"name":"env-editor","version":"1.0.0","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"bde58471978bd5888ad42e82cd935e8cce1381a7","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@1.0.0","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"a7de585a96f0198d9ba20a786c17a691c53afaab","size":3076,"noattachment":false,"key":"/env-editor/-/env-editor-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-1.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-editor_1.0.0_1630105670117_0.05907238210457155"},"_hasShrinkwrap":false,"publish_time":1630105670254,"_cnpm_publish_time":1630105670254},"0.5.0":{"name":"env-editor","version":"0.5.0","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"e97ff594b2cf9026c6b107dc443a1008eb1bca4b","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.5.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"03d82facf6899fc73f5e7c8562fdeca3eda51ca0","size":3055,"noattachment":false,"key":"/env-editor/-/env-editor-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.5.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-editor_0.5.0_1612602213246_0.5821746969076651"},"_hasShrinkwrap":false,"publish_time":1612602213386,"_cnpm_publish_time":1612602213386},"0.4.2":{"name":"env-editor","version":"0.4.2","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"3ffe6148ee948fd26a8c9d60657eaf72e402f209","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.4.2","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4e76568d0bd8f5c2b6d314a9412c8fe9aa3ae861","size":3010,"noattachment":false,"key":"/env-editor/-/env-editor-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.4.2.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-editor_0.4.2_1612077755548_0.5839269675482375"},"_hasShrinkwrap":false,"publish_time":1612077755709,"_cnpm_publish_time":1612077755709},"0.4.1":{"name":"env-editor","version":"0.4.1","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^2.4.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"1cecff1b29beb1c030a22a29d7c55fbe7b59b396","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.4.1","_nodeVersion":"8.16.1","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"77011e08ce45f46e404e8d996b465c684ca57502","size":2945,"noattachment":false,"key":"/env-editor/-/env-editor-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.4.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-editor_0.4.1_1568784822352_0.4315900581946268"},"_hasShrinkwrap":false,"publish_time":1568784822485,"_cnpm_publish_time":1568784822485},"0.4.0":{"name":"env-editor","version":"0.4.0","description":"Get metadata on the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij","nano","emacs"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"cfdeab0111b86414d4573f93423a0f80bd246b0d","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8bde37506314f78edc31b0270a27b9f4f69eccdc","size":2971,"noattachment":false,"key":"/env-editor/-/env-editor-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.4.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-editor_0.4.0_1555554519613_0.7690610505141164"},"_hasShrinkwrap":false,"publish_time":1555554519815,"_cnpm_publish_time":1555554519815},"0.3.1":{"name":"env-editor","version":"0.3.1","description":"Get info about the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"f9ae5471dcc719d0ea299e34644c12a280424c6c","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.3.1","_shasum":"30d0540c2101414f258a94d4c0a524c06c13e3c6","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"30d0540c2101414f258a94d4c0a524c06c13e3c6","size":2495,"noattachment":false,"key":"/env-editor/-/env-editor-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.3.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/env-editor-0.3.1.tgz_1494148119746_0.07072566216811538"},"directories":{},"publish_time":1494148119969,"_hasShrinkwrap":false,"_cnpm_publish_time":1494148119969},"0.3.0":{"name":"env-editor","version":"0.3.0","description":"Get info about the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"800e0d28604077feff2dfc1aa305d0c161e4e801","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.3.0","_shasum":"9fc640448bc561a77c7d83c2765035b82d71cbcd","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9fc640448bc561a77c7d83c2765035b82d71cbcd","size":2447,"noattachment":false,"key":"/env-editor/-/env-editor-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/env-editor-0.3.0.tgz_1494144761489_0.9225545835215598"},"directories":{},"publish_time":1494144761793,"_hasShrinkwrap":false,"_cnpm_publish_time":1494144761793},"0.2.0":{"name":"env-editor","version":"0.2.0","description":"Get info about the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim","neovim","intellij"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"5223ad90fd7d9b440e6c4a9a72c8d9f51e4cfb3e","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.2.0","_shasum":"2ecc126cf70e113ba8e5e009f01b24f6890cf235","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2ecc126cf70e113ba8e5e009f01b24f6890cf235","size":2418,"noattachment":false,"key":"/env-editor/-/env-editor-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/env-editor-0.2.0.tgz_1494143272656_0.06479915464296937"},"directories":{},"publish_time":1494143272886,"_hasShrinkwrap":false,"_cnpm_publish_time":1494143272886},"0.1.1":{"name":"env-editor","version":"0.1.1","description":"Get info about the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate","vim"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"d16f6410f65491595721f6861128480cee8d9c4b","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.1.1","_shasum":"4b9c9b93f8c30191b63fda719ab0a4c938aaef42","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4b9c9b93f8c30191b63fda719ab0a4c938aaef42","size":2342,"noattachment":false,"key":"/env-editor/-/env-editor-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/env-editor-0.1.1.tgz_1493929577713_0.38300946494564414"},"directories":{},"publish_time":1493929577952,"_hasShrinkwrap":false,"_cnpm_publish_time":1493929577952},"0.1.0":{"name":"env-editor","version":"0.1.0","description":"Get info about the default editor or a specific editor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/env-editor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["env","editor","environment","variable","default","editors","main","user","meta","metadata","info","name","binary","path","sublime","atom","vscode","webstorm","textmate"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"86188f970d95b4dbb13ee5a24fc92022adb70bd9","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"homepage":"https://github.com/sindresorhus/env-editor#readme","_id":"env-editor@0.1.0","_shasum":"f8207e29bf472cbf49023333f1c4494cd2a5c824","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f8207e29bf472cbf49023333f1c4494cd2a5c824","size":2333,"noattachment":false,"key":"/env-editor/-/env-editor-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-editor/download/env-editor-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/env-editor-0.1.0.tgz_1493906860838_0.6282185313757509"},"directories":{},"publish_time":1493906861165,"_hasShrinkwrap":false,"_cnpm_publish_time":1493906861165}},"readme":"# env-editor\n\n> Get metadata on the default editor or a specific editor\n\nThis module is used by [`open-editor`](https://github.com/sindresorhus/open-editor).\n\n## Supported editors\n\n- Sublime Text\n- Atom\n- Visual Studio Code\n- Visual Studio Code - Insiders\n- VSCodium\n- WebStorm\n- TextMate\n- Vim\n- NeoVim\n- IntelliJ\n- GNU nano\n- GNU Emacs\n- Android Studio\n- Xcode\n\n## Install\n\n```sh\nnpm install env-editor\n```\n\n## Usage\n\n```js\nimport {defaultEditor, getEditor, allEditors} from 'env-editor';\n\ndefaultEditor();\n/*\n{\n\tid: 'atom',\n\tname: 'Atom',\n\tbinary: 'atom',\n\tisTerminalEditor: false,\n\tpaths: [\n\t\t'/Applications/Atom.app/Contents/Resources/app/atom.sh'\n\t],\n\tkeywords: []\n}\n*/\n\ngetEditor('sublime');\n/*\n{\n\tid: 'sublime',\n\tname: 'Sublime Text',\n\tbinary: 'subl',\n\tisTerminalEditor: false,\n\tpaths: [\n\t\t'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',\n\t\t'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl'\n\t],\n\tkeywords: []\n}\n*/\n\nallEditors();\n/*\n[\n\t{\n\t\tid: 'atom',\n\t\t…\n\t},\n\t{\n\t\tid: 'sublime,\n\t\t…\n\t},\n\t…\n]\n*/\n```\n\n## API\n\n### defaultEditor()\n\nReturns metadata on the default editor.\n\nThe user is expected to have the `$EDITOR` environment variable set, and if not, a user-friendly error is thrown.\n\n### getEditor(editor)\n\nReturns metadata on the specified editor.\n\n#### editor\n\nType: `string`\n\nThis can be pretty flexible. It matches against all the data it has.\n\nFor example, to get Sublime Text, you could write either of the following: `sublime`, `Sublime Text`, `subl`.\n\n### allEditors()\n\nReturns an array with metadata on all the editors.\n","_attachments":{},"homepage":"https://github.com/sindresorhus/env-editor#readme","bugs":{"url":"https://github.com/sindresorhus/env-editor/issues"},"license":"MIT"}