Skip to main content

Node.js virtual environment wrapper on top of nodeenv

Project description

npmworkon

Quick script to handle nodeenv outside of the virtualenv wrapper.

If you want it in the same virtualenv wrapper, nodeenv -p is what you want and you don't need npmworkon.

Installation

pip install npmworkon

The npm virtualenv will be created in the home directory .npmvirtualenvs. For now, this value is hardcoded.

Usage

Create a Python virtualenv

➜ mkvirtualenv py_venv
[...]

Install npmworkon

(py_venv) ➜ pip install npmworkon
[...]

Create a npm virtualenv

(py_venv) ➜ $(npmworkon node_venv)

List npm virtualenv

(node_venv) (py_venv) ➜ npmworkon
node_venv

Desactivate npm virtualenv

(node_venv) (py_venv) ➜ deactivate_node

Remove npm virtualenv

(py_venv) ➜ npmworkon --rm node_venv

(py_venv) ➜ npmworkon
# node_venv is gone :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npmworkon-0.1.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

npmworkon-0.1.0-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page