🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

nypm

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nypm - npm Package Compare versions

Comparing version

to
0.6.0

{
"name": "nypm",
"version": "0.5.4",
"version": "0.6.0",
"description": "Unified Package Manager for Node.js",

@@ -10,12 +10,4 @@ "repository": "unjs/nypm",

"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},

@@ -25,3 +17,2 @@ "bin": {

},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",

@@ -36,19 +27,19 @@ "types": "./dist/index.d.ts",

"pathe": "^2.0.3",
"pkg-types": "^1.3.1",
"tinyexec": "^0.3.2",
"ufo": "^1.5.4"
"pkg-types": "^2.0.0",
"tinyexec": "^0.3.2"
},
"devDependencies": {
"@types/node": "^22.13.4",
"@vitest/coverage-v8": "^3.0.6",
"@types/node": "^22.13.5",
"@vitest/coverage-v8": "^3.0.7",
"automd": "^0.3.12",
"changelogen": "^0.5.7",
"eslint": "^9.20.1",
"eslint": "^9.21.0",
"eslint-config-unjs": "^0.4.2",
"jiti": "^2.4.2",
"prettier": "^3.5.1",
"prettier": "^3.5.2",
"std-env": "^3.8.0",
"typescript": "^5.7.3",
"ufo": "^1.5.4",
"unbuild": "^3.3.1",
"vitest": "^3.0.6"
"vitest": "^3.0.7"
},

@@ -55,0 +46,0 @@ "engines": {

@@ -72,7 +72,7 @@ # 🌈 nypm

```js
// ESM
// ESM import
import { addDependency } from "nypm";
// CommonJS
const { addDependency } = require("nypm");
// or dynamic import
const { addDependency } = await import("nypm");
```

@@ -111,2 +111,6 @@

### `runScript(name, options)`
Runs a script defined in the `package.json` file.
> [!NOTE]

@@ -113,0 +117,0 @@ > For `bun` and `deno` it will remove the lockfile and reinstall all dependencies.

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