# donkeyclip

> Command Line tools for MotorCortex

Latest version **1.0.14** (published 2022-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install donkeyclip
pnpm add donkeyclip
yarn add donkeyclip
bun add donkeyclip
```

Provides the command `donkeyclip`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.14 |
| Published | 2022-05-31 |
| First published | 2021-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 7 |
| Unpacked size | 26.1 KB |
| Known vulnerabilities | 0 (+6 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | alexdor |
| Keywords | motorcortex, donkeyclip-cli, donkeyclip, cli, code, code-donkeyclip |

## Links

- npm: https://www.npmjs.com/package/donkeyclip
- Repository: https://github.com/donkeyclip/cli
- Homepage: https://github.com/donkeyclip/cli#readme
- Issues: https://github.com/donkeyclip/cli/issues
- npm.io page: https://npm.io/package/donkeyclip

## Dependencies (7)

- [ora](https://npm.io/package/ora.md) 5.4.1
- [uuid](https://npm.io/package/uuid.md) 8.3.2
- [yargs](https://npm.io/package/yargs.md) 17.5.1
- [rimraf](https://npm.io/package/rimraf.md) 3.0.2
- [rollup](https://npm.io/package/rollup.md) 2.75.3
- [isomorphic-git](https://npm.io/package/isomorphic-git.md) 1.17.2
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) 7.0.2

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.0.14 (latest) — 2022-05-31
- 1.0.13 — 2022-04-15
- 1.0.12 — 2022-03-07
- 1.0.11 — 2022-01-30
- 1.0.10 — 2022-01-15
- 1.0.9 — 2022-01-15
- 1.0.8 — 2022-01-15
- 1.0.7 — 2022-01-14
- 1.0.6 — 2021-10-29
- 1.0.5 — 2021-10-06
- 1.0.4 — 2021-10-01
- 1.0.3 — 2021-09-30
- 1.0.2 — 2021-09-30

## README

# Donkeyclip CLI

## Purpose
Donkeyclip CLI is a command line interface that creates a new donkeyclip project and installs all the required dependencies for you. It does so by creating a clear, local clone of the **[Motorcortex Clip Starter](https://github.com/donkeyclip/motorcortex-clip-starter)** boilerplate repository.

## Usage
- `npx donkeyclip newclip <name>` will create a new folder with the provided name. Simply run `npm run start` in your local project's folder and have fun coding with [code.dokeyclip.com](https://code.donkeyclip.com). 

## Good to know
### How to connect the local donkeyclip project with a GitHub repo?
The created donkeyclip project is not connected to any GitHub repository by default. In order to connect your project with a GitHub repo you need to follow these steps:
1. Create a new GitHub repo
2. Browse in the project's folder through the terminal and run these commands: 
```bash
git init
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:<username>/<repository-name>.git
git push -u origin main
```

### How does donkeyclip know which clip I am editing and how can I update the same clip from another device?
Donkeyclip CLI creates a unique id each time you run the `npx donkeyclip newclip` command. This ID is a unique identifier and will be used in combination with your donkeyclip userID to create an online version of your donkeyclip. This unique ID lies in the `demo/id.js` file of your project. If you want to edit the same clip from another device the ids must match otherwise a new clip will be created instead. Here lies the need for a Github repo that includes the id.js file.

### Can other users contribute to my clip?
Yes and No. No other user can directly update your clip. As mentioned in the previous question, donkeyclip identifies a clip combining the demo/id.js file and the userID. Thus, when another user clones your repository, including the demo/id.js, and tries to publish, the combination userID-id.js differs from yours. If you want others to contribute to your donkey clip you are the one that must publish the clip through donkeyclip. 

## License
[MIT License](https://opensource.org/licenses/MIT)

[<img src="https://presskit.donkeyclip.com/logos/donkey%20clip%20logo.svg" width=250></img>](https://donkeyclip.com)

---
_Source: https://npm.io/package/donkeyclip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
