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
- Host: GitHub
- URL: https://github.com/mikerogne/droplr-cli
- Owner: mikerogne
- License: mit
- Created: 2018-11-06T09:13:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-07T17:17:10.000Z (about 7 years ago)
- Last Synced: 2025-04-22T07:51:44.916Z (9 months ago)
- Topics: droplr, droplr-api, droplr-cli, image-sharing, image-sharing-app
- Language: JavaScript
- Size: 22.5 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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**.

## 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!