Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soybeanjs/syncmirror
sync npmmirror
https://github.com/soybeanjs/syncmirror
Last synced: about 1 month ago
JSON representation
sync npmmirror
- Host: GitHub
- URL: https://github.com/soybeanjs/syncmirror
- Owner: soybeanjs
- Created: 2023-12-09T17:25:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-04T22:44:47.000Z (7 months ago)
- Last Synced: 2024-11-14T05:39:12.774Z (about 2 months ago)
- Language: TypeScript
- Size: 197 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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
```