Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 6, 2024
1 parent d523b47 commit b36af77
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## What does **nypm** do?

✅ 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.
✅ 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.

✅ Provides an **API interface** to interact with package managers.

Expand All @@ -31,12 +31,9 @@ nypm, detects package manager type and version and converts command into package
+---------+ +---------+ +---------+
| npm | | yarn | | pnpm |
+---------+ +---------+ +---------+
+------------------------------------------------+
| Node.js project |
+------------------------------------------------+
```

## CLI Usage
## `nypm` Command

**Install dependencies:**

Expand Down Expand Up @@ -85,14 +82,10 @@ Import:

```js
// ESM
import {
addDependency,
} from "nypm";
import { addDependency } from "nypm";

// CommonJS
const {
addDependency,
} = require("nypm");
const { addDependency } = require("nypm");
```

<!-- AUTOMD_START generator="jsdocs" -->
Expand Down

0 comments on commit b36af77

Please sign in to comment.