# @kyushun/nix

> ni extended

Latest version **0.1.0** (published 2023-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kyushun/nix
pnpm add @kyushun/nix
yarn add @kyushun/nix
bun add @kyushun/nix
```

Provides the command `nix`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-09-05 |
| First published | 2023-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kyushun |
| Maintainers | kyushun |

## Links

- npm: https://www.npmjs.com/package/@kyushun/nix
- Repository: https://github.com/kyushun/nix
- Issues: https://github.com/kyushun/nix/issues
- npm.io page: https://npm.io/package/@kyushun/nix

## Dependencies (2)

- [kleur](https://npm.io/package/kleur.md) ^4.1.5
- [@antfu/ni](https://npm.io/package/@antfu/ni.md) 0.21.8

## Recent versions

- 0.1.0 (latest) — 2023-09-05

## README

# @kyushun/nix

**@kyushun/nix** is a tool that detects the npm package manager used in your repository (npm, yarn, pnpm, etc.) and runs the corresponding commands, simplifying your npm experience.

## Features

- **Unified Command Structure**: Execute operations without switching between command prefixes.
- **Cross-Environment Compatibility**: Runs wherever npm is available.
- **Automatic Detection**: Adapts to the npm package manager in your repo.

Inspired by [@antfu/ni](https://github.com/antfu/ni) and [azu/ni.zsh](https://github.com/azu/ni.zsh), this package adopts the core functionality of [@antfu/ni](https://github.com/antfu/ni) but offers a more unified command structure. Unlike [@antfu/ni](https://github.com/antfu/ni), which uses different prefixes for various commands like install, run, upgrade, and uninstall, our tool maintains a consistent command prefix across all operations. Additionally, while [azu/ni.zsh](https://github.com/azu/ni.zsh) is restricted to the zsh environment, our package can be used wherever npm is available.

## Installation

```sh
npm i -g @kyushun/nix
```

## Usage

```sh
nix                          -- installs dependencies
nix add/install <pkg>        -- adds a package
nix remove/uninstall <pkg>   -- removes a package
nix [run] <script>           -- runs npm scripts
nix upgrade/update [<pkg>]   -- upgrades packages
nix exec <command>           -- executes a command directly
nix dlx <pkg>                -- downloads and executes a package command
```

---
_Source: https://npm.io/package/@kyushun/nix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
