Skip to content

Instantly share code, notes, and snippets.

@danielo515
Created February 9, 2023 15:41
Show Gist options
  • Save danielo515/b2b2576155111a3a8fb73b47da2efac8 to your computer and use it in GitHub Desktop.
Save danielo515/b2b2576155111a3a8fb73b47da2efac8 to your computer and use it in GitHub Desktop.
// Name: url encode
import "@johnlindquist/kit"
const text = await arg("What do you want to encode");
const encoded = encodeURIComponent(text)
await copy(encoded);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment