Skip to content

Upload Screen Shot to Your Cloudinary and Give You the Url --- CLI Tool

License

Notifications You must be signed in to change notification settings

BOOLRon/watchdog4cloudinary

Repository files navigation

watchdog4cloudinary

监听Mac系统截图自动上传到cloudinary并返回截图的url

image

before

install

npm install -g watchdog4cloudinary

setup

cd ~ && vim cloudinary.conf

然后编辑输入你的cloudiany信息并保存

{
  "cloud_name": "your cloud name",
  "api_key": "your api key",
  "api_secret": "your api secret"
}

usage

第一次使用需要先修改Mac系统截图自动保存的目录

mkdir ~/Desktop/up2cloudinary
sudo defaults write com.apple.screencapture location ~/Desktop/up2cloudinary/
killall SystemUIServer

然后终端输入即可开启监听模式

watchdog4cloudinary

每次触发Mac系统截屏 (快捷键cmd+shift+4),都会在~/Destop/up2cloudinary目录下的生成并上传cloudianry,上传成功后会自动复制链接到剪切板

About

Upload Screen Shot to Your Cloudinary and Give You the Url --- CLI Tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published