Skip to content

NPM package with a CLI to open the default text editor

Notifications You must be signed in to change notification settings

rubennorte/edit-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

edit-cli

CLI program to open the default text editor of the user.

Installation

npm install edit-cli

Usage

edit <file>

Example:

edit CHANGELOG.md

Motivation

This CLI program is useful to enforce users to edit certain files in npm lifecycle hooks. For example, you may want to automatically edit the CHANGELOG.md file when a new version is created:

package.json:

{
  "scripts": {
    "version": "edit CHANGELOG.md"
  },
  "devDependencies": {
    "edit-cli": "..."
  }
}

About

NPM package with a CLI to open the default text editor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages