Installation npm i -g upload-image-from-clipboard Set SM.MS token Open https://sm.ms/home/apitoken Set token to local ui -t <your_token> Remove token rm ~/.config/upload-image.json Usage Via Command line ui Via JavaScript import { uploadImage } from 'upload-image-from-clipboard' uploadImage()