Node.js virtual environment builder for creating isolated Node.js environments
80
A command-line utility that creates Node.js virtual environments using custom download mirrors for organizations with restricted internet access or internal mirrors.
@generates
def setup_environment(env_dir: str, mirror_url: str = None, config_file: str = None) -> bool:
"""
Creates a Node.js virtual environment using a custom mirror.
Args:
env_dir: Directory path where the environment will be created
mirror_url: Custom mirror URL for downloading Node.js (optional)
config_file: Path to configuration file containing mirror settings (optional)
Returns:
bool: True if environment was created successfully, False otherwise
"""
pass
def validate_mirror_url(mirror_url: str) -> bool:
"""
Validates that a mirror URL is properly formatted.
Args:
mirror_url: The mirror URL to validate
Returns:
bool: True if URL is valid, False otherwise
"""
passProvides Node.js virtual environment creation with mirror support.
Install with Tessl CLI
npx tessl i tessl/pypi-nodeenvdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10