Skip to content

webframp/default-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

default-editor Build Status

Get the user's default editor based on the environment variable $EDITOR

Install

$ npm install --save default-editor

Usage

The exe defined by $EDITOR is assumed to be in the $PATH

const defaultEditor = require('default-editor');

// macOS
console.log(defaultEditor);
//=> 'vim'

// Windows
console.log(defaultEditor);
//=> 'notepad.exe'

License

MIT © Sean Escriva

Credits

Directly based on https://github.com/sindresorhus/default-shell and probably less useful.

About

A useless little node module to determine platform $EDITOR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published