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

https://github.com/mikerogne/droplr-cli

Droplr CLI tool
https://github.com/mikerogne/droplr-cli

droplr droplr-api droplr-cli image-sharing image-sharing-app

Last synced: 8 months ago
JSON representation

Droplr CLI tool

Awesome Lists containing this project

README

          

# droplr-cli

Super simple Droplr command-line utility for viewing and updating "drops".

One of the things I frequently do when capturing and uploading a screenshot is setting a specific expiration date for it. If I'm taking a work screenshot, I typically want it to last forever. I'll manually clean them up later, or have them auto-expire after a year.

On the other hand, if it's just a screenshot for Slack, IRC, or to send to some friends... I generally don't want it to live longer than a day or so. Sometimes not longer than a few minutes.

With droplr-cli, I can simply do something like: `droplr expire https://d.pr/i/id-here 30m` and it will set that drop to expire in 30 minutes. Available durations are **(m)inute, (h)our, (d)ay, (y)ear**.

![Screenshot](https://cdn-std.dprcdn.net/files/acc_411671/uajVKD)

## Getting Started

### Prerequisites

- Node.js (I like using `nvm` personally. See more: [Node Version Manager](https://github.com/creationix/nvm))

### Steps

- `npm install -g droplr-cli`
- `droplr set-auth ` (This will create a `droplr-cli.json` file in your config directory. Typically `~/.config` on macOS/UNIX.)

## Running the tests

- `npm run test`

## License

This project is licensed under the [MIT License](https://github.com/mikerogne/droplr-cli/blob/f033c84a3b78e56d98e80f6cf7dd7a4b8ee5adee/LICENSE).

## Acknowledgments

- https://github.com/Droplr/droplr-js
- Thanks to [FatBoyXPC](https://github.com/FatBoyXPC/) for the XDG Base Directory assistance!