npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fnet/miniconda-installer

v0.1.4

Published

## Introduction

Downloads

35

Readme

@fnet/miniconda-installer

Introduction

The @fnet/miniconda-installer is a utility tool designed to manage the installation, uninstallation, and upgrading of Conda (Miniconda) on your system. It simplifies the process by automatically detecting existing installations and offering suitable options to upgrade or modify your current setup. This cross-platform tool ensures that users can manage Conda installations easily and interactively, making it a helpful tool for users who rely on Conda as part of their development environment.

How It Works

The @fnet/miniconda-installer operates by checking your system for any existing Conda installations and then providing options based on its findings. If Conda is not installed, it guides the installation process, ensuring the correct version and configuration for your platform and architecture. It can also uninstall existing installations or upgrade them to specific versions of Miniconda. The tool interacts with the user for confirmations when needed and can modify system PATH settings to include Conda, if necessary.

Key Features

  • Flexible Management: Install, uninstall, or upgrade Conda as required.
  • Cross-Platform Support: Works seamlessly on Windows, macOS, and Linux.
  • Interactive User Prompts: Provides options and confirmations during operations.
  • Automatic PATH Configuration: Offers to add Conda to your PATH if it's not already present.
  • Version Control: Specify the version of Miniconda to install or upgrade to.

Conclusion

The @fnet/miniconda-installer is a straightforward and practical tool for managing Conda installations. Whether you're setting up Miniconda for the first time or maintaining an existing setup, this utility helps streamline the process, making it hassle-free and efficient.

@fnet/miniconda-installer Developer Guide

Overview

The @fnet/miniconda-installer library provides an easy-to-use interface for managing Miniconda installations. Designed to streamline the process of installing, upgrading, and uninstalling Miniconda, it is cross-platform compatible, supporting Windows, macOS, and Linux environments. With this library, developers can automate the setup of Miniconda in their projects and ensure consistent environments across systems.

Installation

To incorporate the @fnet/miniconda-installer into your Node.js project, you can install it using either npm or yarn. Here are the commands:

With npm:

npm install @fnet/miniconda-installer

With yarn:

yarn add @fnet/miniconda-installer

Usage

The library's main functionality is accessed via a single function, which manages the installation, uninstallation, and upgrading of Miniconda.

Basic Example

Here's a basic usage example for installing Miniconda:

import minicondaInstaller from '@fnet/miniconda-installer';

(async () => {
    try {
        const condaPath = await minicondaInstaller({
            minicondaVersion: 'latest',
            action: 'install'
        });
        console.log(`Conda installed at: ${condaPath}`);
    } catch (error) {
        console.error(`Error during installation: ${error.message}`);
    }
})();

Parameters

  • minicondaVersion: Specifies the version of Miniconda to install. Defaults to 'latest'.
  • installDir: Directory where Miniconda will be installed. Defaults to ~/miniconda3.
  • interactive: Whether to prompt the user for confirmations. Defaults to true.
  • action: Specifies the operation to perform: 'install', 'uninstall', or 'upgrade'. Defaults to 'install'.

Examples

Installing Miniconda

To install Miniconda to a custom directory:

await minicondaInstaller({
    minicondaVersion: '23.3.1',
    installDir: '/custom/path/to/miniconda',
    action: 'install'
});

Uninstalling Miniconda

To uninstall Miniconda from the specified directory:

await minicondaInstaller({
    installDir: '/custom/path/to/miniconda',
    action: 'uninstall'
});

Upgrading Miniconda

To upgrade an existing Miniconda installation:

await minicondaInstaller({
    minicondaVersion: '23.4.0',
    action: 'upgrade'
});

Acknowledgement

This library simplifies Miniconda management by leveraging Node.js's built-in modules for cross-platform compatibility.

Input Schema

$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
  minicondaVersion:
    type: string
    description: Version of Miniconda to install or upgrade to. Defaults to 'latest'.
    default: latest
  installDir:
    type: string
    description: Directory where Miniconda should be installed. Defaults to the
      user's home directory.
  interactive:
    type: boolean
    description: Whether to prompt the user for confirmations. Defaults to true.
    default: true
  action:
    type: string
    description: "Action to perform: 'install', 'uninstall', or 'upgrade'."
    default: install
required: []