Skip to content

Use keyboard shortcuts to run npm script commands.

License

Notifications You must be signed in to change notification settings

gyandeeps/hypernpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version

hypernpm

Use keyboard shortcuts to run npm commands or scripts.

Install

To install, edit ~/.hyper.js and add "hypernpm" to plugins:

plugins: [                                                                                               
  "hypernpm",                                                                                           
]

Use

Shortcut: ALT + <NUM>
NUM: 0 to 9 (inclusive)

Defaults

  • ALT + 1: npm install
  • ALT + 2: npm test

Configuration

To configure, edit ~/.hyper.js and add hypernpm to config:

Define 0 to 9 keys and point it to a native npm command or a script from package.json.

Example:

{
    config: {
        hypernpm: {
            // will run `npm run lint`
            1: "lint",
            // will run `npm test` since it's a native npm command
            5: "test"
        }
    }
}

Note: Any invalid configurations will be silently ignored.