Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soybeanjs/syncmirror

sync npmmirror
https://github.com/soybeanjs/syncmirror

Last synced: about 1 month ago
JSON representation

sync npmmirror

Awesome Lists containing this project

README

        

# syncmirror

## Usage

### use npx

#### sync single package

```bash
npx syncmirror -s @soybeanjs/cli
```
#### sync multi packages

```bash
npx syncmirror -s @soybeanjs/cli,@soybeanjs/eslint-config
```

### use api

```ts
import { sync } from 'syncmirror'

// 1. sync single package
// if not provide the name, it will use the package.json name
sync();
// sync the package with name @soybeanjs/cli
sync('@soybeanjs/cli');

// 2. sync multi packages
sync(['@soybeanjs/cli', '@soybeanjs/eslint-config']);

// 3. with options
sync('@soybeanjs/cli', {
cwd: process.cwd(),
log: true,
timeout: 1000 * 60,
});
```

### help

```bash
npx syncmirror -h
```