This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Welcome to Cloudflare Workers! This is your first worker. | |
* | |
* - Run "npm run dev" in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run "npm run deploy" to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Escape Backticks | |
import "@johnlindquist/kit" | |
const text = await arg("Paste text to escape backticks"); | |
await copy(text.replace(/`/g, '\\`')); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
## Open [https://scriptkit.com](https://scriptkit.com) in your browser | |
*/ | |
// Name: ScriptKit.com | |
// Description: Launch scriptkit.com in your browser | |
// Author: John Lindquist | |
// Twitter: @johnlindquist | |
// Note: Feel free to delete this script! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const uuid = require('uuid') | |
const md5 = require('md5') | |
const qs = require('query-string') | |
const Router = require('koa-router') | |
const apiRoute = new Router() | |
const NOTIFY_URL = '' | |
const CALLBACK_URL = '' | |
const MCHID = '🆔' | |
const KEY = '🗝' |