CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-nodeenv

tessl install tessl/pypi-nodeenv@1.9.0

Node.js virtual environment builder for creating isolated Node.js environments

Agent Success

Agent success rate when using this tile

80%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.25x

Baseline

Agent success rate without this tile

64%

task.mdevals/scenario-1/

Node.js Environment Mirror Configuration Tool

A command-line utility that creates Node.js virtual environments using custom download mirrors for organizations with restricted internet access or internal mirrors.

Capabilities

Mirror URL Configuration

  • Accepts a mirror URL as a command-line argument @test
  • Validates that the mirror URL is properly formatted @test

Environment Creation with Custom Mirror

  • Creates a Node.js virtual environment using the specified mirror @test
  • Supports both full URL and domain-only mirror formats @test

Configuration File Support

  • Reads mirror configuration from a config file when provided @test
  • Command-line mirror argument overrides config file setting @test

Implementation

@generates

API

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
    """
    pass

Dependencies { .dependencies }

nodeenv { .dependency }

Provides Node.js virtual environment creation with mirror support.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/nodeenv@1.9.x
tile.json