Skip to content

nodenv/nodenv-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Man pages for nodenv Node versions

nodenv-man is a plugin for nodenv to easily access the man pages for the currently set node version, e.g. node(1) and npm(1).

Technically, nodenv-man is a wrapper for man(1) that takes care of using the correct manpath.

Installation

To install nodenv-man, clone this repository into your $(nodenv root)/plugins directory.

```sh
$ mkdir -p "$(nodenv root)/plugins"
$ git clone https://github.com/nodenv/nodenv-man.git "$(nodenv root)/plugins/nodenv-man"
```

Usage

Simply use nodenv-man in the same way as your system's man(1) program. All command-line options are passed through to it.

Some examples:

  • Show node(1) manual:

    $ nodenv man node
  • Show npm(1) manual:

    $ nodenv man 1 npm
  • Print location of node(1) manual:

    $ nodenv man -w node
    /usr/local/var/nodenv/versions/4.2.1/share/man/man1/node.1
  • Change node version and print new location of man page:

    $ NODENV_VERSION=5.0.0 nodenv man -w node
    /usr/local/var/nodenv/versions/5.0.0/share/man/man1/node.1

About

View man pages for currently active node version

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages