-
Notifications
You must be signed in to change notification settings - Fork 4
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
chore: readme #61
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` 进行依赖管理 | ||
* 可以通过 `rapid clean` 进行替代 | ||
|
||
# 🎁 特别感谢 | ||
- [fuse-t](https://github.com/macos-fuse-t/fuse-t) Thanks fuse-t for kext-less implementation of FUSE. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
执行了会怎么样?