hypernpm

0.1.1 • Public • Published

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: {
            // wil 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.

Package Sidebar

Install

npm i hypernpm

Weekly Downloads

3

Version

0.1.1

License

MIT

Last publish

Collaborators

  • gyandeeps