Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: readme #61

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 40 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,49 @@
# rapid
The fastest way to install npm packages.
# 🚀 rapid
[中文版本](./README.zh-CN.md)
> The *fastest* way to install npm packages.

[![Node CI Linux](https://github.com/cnpm/rapid/actions/workflows/ci.yml/badge.svg)](https://github.com/cnpm/rapid/actions/workflows/linux-ci.yml) [![Rust TEST Linux](https://github.com/cnpm/rapid/actions/workflows/rust-test.yml/badge.svg)](https://github.com/cnpm/rapid/actions/workflows/rust-test.yml)

# Usage
- 🏗️ Follow `package-lock.json`, no private configuration
- ♻️ Global dist cache, extremely fast reinstallation
- ⛑️ Safe project dependency isolation
- 🛠️ Supports integration for any package manager

## Getting Started

### Independent Client
```bash
$ npm i @cnpmjs/rapid --registry=https://registry.npmmirror.com
$ npm i --package-lock-only --registry=https://registry.npmmirror.com
$ rapid install
```

### Integration
```javascript
const rapid = require('@cnpmjs/rapid');
await rapid({});
await rapid.install({
cwd,
});
```

## Help
```bash
rapid [command]

Commands:
rapid install Install dependencies [aliases: i, ii]
rapid clean [path] Clean up the project [aliases: c, unmount, uninstall]
rapid list List rapid mount info [aliases: l]

Options:
--version Show version number [boolean]
--help Show help [boolean]
```

## Notice

* plz do not directly `rm -rf node_modules`` to manage dependencies.
* You can use `rapid clean`` instead.

# 🎁 Acknowledgements
- [fuse-t](https://github.com/macos-fuse-t/fuse-t) Thanks fuse-t for kext-less implementation of FUSE.
49 changes: 49 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 🚀 rapid
[English Version](./README.md)
> The *fastest* way to install npm packages.

[![Node CI Linux](https://github.com/cnpm/rapid/actions/workflows/ci.yml/badge.svg)](https://github.com/cnpm/rapid/actions/workflows/linux-ci.yml) [![Rust TEST Linux](https://github.com/cnpm/rapid/actions/workflows/rust-test.yml/badge.svg)](https://github.com/cnpm/rapid/actions/workflows/rust-test.yml)

- 🏗️ 基于 package-lock.json ,无任何私有配置
- ♻️ 统一的全局产物缓存,极快的二次安装
- ⛑️ 安全的项目依赖隔离方案
- 🛠️ 支持二次集成开发,支持任意 npm 包管理器

## 快速开始

### 独立客户端
```bash
$ npm i @cnpmjs/rapid --registry=https://registry.npmmirror.com
$ npm i --package-lock-only --registry=https://registry.npmmirror.com
$ rapid install
```

### npm 包集成
```javascript
const rapid = require('@cnpmjs/rapid');
await rapid.install({
cwd,
});
```

## 帮助说明
```bash
rapid [command]

Commands:
rapid install Install dependencies [aliases: i, ii]
rapid clean [path] Clean up the project [aliases: c, unmount, uninstall]
rapid list List rapid mount info [aliases: l]

Options:
--version Show version number [boolean]
--help Show help [boolean]
```

## 特别注意

* 请勿直接 `rm -rf node_modules` 进行依赖管理
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

执行了会怎么样?

* 可以通过 `rapid clean` 进行替代

# 🎁 特别感谢
- [fuse-t](https://github.com/macos-fuse-t/fuse-t) Thanks fuse-t for kext-less implementation of FUSE.
Loading