Skip to content

Instantly share code, notes, and snippets.

@azu

azu/kindle-copy.js Secret

Created Apr 16, 2021
Embed
What would you like to do?
kindle copy app from url
#!/usr/bin/env node
/**
* https://gist.github.com/georgebrock/9ab3d83bf160b7c1c2b0
* 1. Script Editor
* 2. Shell Script
* 3. Node.js
*/
const url = new URL(process.argv[2]);
const text = url.searchParams.get("q");
const clipboardy = require('clipboardy');
clipboardy.writeSync(text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment