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": "xtendops.com", | |
"version": "0.0.1", | |
"scripts": { | |
"dev": "svelte-kit dev --port 4000", | |
"build": "svelte-kit build", | |
"preview": "svelte-kit preview", | |
"lint": "eslint .", | |
"lint:fix": "eslint . --fix", | |
"generate:manifest": "node ./generate-manifest.js", |
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
// Matches patterns: | |
// https://twitter.com/Adobe | |
// Thank you Jamie | |
// https://www.jvt.me/posts/2020/02/08/regex-twitter-profile-url/ | |
export function getTwitterHandle(string) { | |
let regex = /(https:\/\/twitter.com\/(?![a-zA-Z0-9_]+\/)([a-zA-Z0-9_]+))/; | |
return regex.exec(string)[2]; | |
} |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 airFryer = () => { | |
console.log(`Air Fryers are awesome!`); | |
airFryer(); | |
} |