Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nypm

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nypm - npm Package Compare versions

Comparing version 0.3.12 to 0.4.0

2

dist/index.d.ts

@@ -1,2 +0,2 @@

type PackageManagerName = "npm" | "yarn" | "pnpm" | "bun";
type PackageManagerName = "npm" | "yarn" | "pnpm" | "bun" | "deno";
type PackageManager = {

@@ -3,0 +3,0 @@ name: PackageManagerName;

{
"name": "nypm",
"version": "0.3.12",
"version": "0.4.0",
"description": "Unified Package Manager for Node.js",

@@ -28,20 +28,20 @@ "repository": "unjs/nypm",

"consola": "^3.2.3",
"execa": "^8.0.1",
"pathe": "^1.1.2",
"pkg-types": "^1.2.0",
"tinyexec": "^0.3.1",
"pkg-types": "^1.2.1",
"ufo": "^1.5.4"
},
"devDependencies": {
"@types/node": "^22.7.2",
"@vitest/coverage-v8": "^2.1.1",
"automd": "^0.3.8",
"@types/node": "^22.10.0",
"@vitest/coverage-v8": "^2.1.6",
"automd": "^0.3.12",
"changelogen": "^0.5.7",
"eslint": "^9.11.1",
"eslint-config-unjs": "^0.4.0",
"jiti": "^2.0.0",
"prettier": "^3.3.3",
"std-env": "^3.7.0",
"typescript": "^5.6.2",
"eslint": "^9.15.0",
"eslint-config-unjs": "^0.4.2",
"jiti": "^2.4.0",
"prettier": "^3.4.1",
"std-env": "^3.8.0",
"typescript": "^5.7.2",
"unbuild": "^2.0.0",
"vitest": "^2.1.1"
"vitest": "^2.1.6"
},

@@ -48,0 +48,0 @@ "engines": {

@@ -1,14 +0,15 @@

# 🌈 [nypm](https://www.youtube.com/watch?v=QH2-TGUlwu4)
# 🌈 nypm
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]
<!-- automd:badges color="yellow" codecov -->
> Unified Package Manager for Node.js and Bun
[![npm version](https://img.shields.io/npm/v/nypm?color=yellow)](https://npmjs.com/package/nypm)
[![npm downloads](https://img.shields.io/npm/dm/nypm?color=yellow)](https://npm.chart.dev/nypm)
[![codecov](https://img.shields.io/codecov/c/gh/unjs/nypm?color=yellow)](https://codecov.io/gh/unjs/nypm)
## What does **nypm** do?
<!-- /automd -->
✅ Supports [npm](https://docs.npmjs.com/cli/v10/commands/npm), [yarn](https://yarnpkg.com/), [pnpm](https://pnpm.io/) and [bun](https://bun.sh/package-manager) out of the box with a unified API.
🌈 Unified Package Manager for Node.js (npm, pnpm, yarn), Bun and Deno.
✅ Supports [npm](https://docs.npmjs.com/cli/v10/commands/npm), [yarn](https://yarnpkg.com/), [pnpm](https://pnpm.io/) and [bun](https://bun.sh/package-manager) and [deno](https://deno.com/) out of the box with a unified API.
✅ Provides an **API interface** to interact with package managers.

@@ -18,22 +19,6 @@

✅ **Auto-installs and use exactly expected version** of supported package managers using [nodejs/corepack](https://github.com/nodejs/corepack) when available.
✅ **[corepack](https://github.com/nodejs/corepack)** integration for **pnpm** and **yarn**.
✅ **Minimal** implementation.
## `nypm` command
nypm, detects package manager type and version and converts command into package manager CLI arguments. It then uses corepack or proper command to execute package manager's command and download it if necessary.
```
+------------------------------------------------+
| nypm |
+------------------------------------------------+
+-----------------------------------+ +---------+
| Corepack | | bun |
+-----------------------------------+ +---------+
+---------+ +---------+ +---------+
| npm | | yarn | | pnpm |
+---------+ +---------+ +---------+
```
## `nypm` Command
**Install dependencies:**

@@ -61,7 +46,7 @@

<!-- AUTOMD_START generator="pm-install" name="nypm" -->
<!-- automd:pm-i -->
```sh
# ✨ Auto-detect
npx nypm i nypm
npx nypm install nypm

@@ -79,5 +64,8 @@ # npm

bun install nypm
# deno
deno install nypm
```
<!-- AUTOMD_END -->
<!-- /automd -->

@@ -94,4 +82,2 @@ Import:

<!-- AUTOMD_START generator="jsdocs" -->
### `addDependency(name, options)`

@@ -124,10 +110,7 @@

<!-- AUTOMD_END -->
## 💻 Development
- Clone this repository
- Play [Nyan Cat](https://www.youtube.com/watch?v=2yJgwwDcgV8) in the background (really important!)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)
- Play [Nyan Cat](https://www.nyan.cat/) in the background (really important!)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`

@@ -134,0 +117,0 @@ - Run interactive tests using `pnpm dev`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc